Skip to content

Commit

Permalink
Revert multi-stage build
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Nov 9, 2022
1 parent eb0b1a8 commit 7ef54ab
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions .github/workflows/docker-multistage-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,6 @@ on:
description: 'Unique artifact name prefix (to avoid overriding existing artifcats during parallel runs).'
required: true
type: string
artifact_prev_name_add_version:
description: 'Add version to artifact name to download.'
required: false
default: true
type: boolean
artifact_curr_name_add_version:
description: 'Add version to artifact name to upload.'
required: false
default: true
type: boolean
has_refs:
description: 'The ref build matrix as JSON string (list of git refs to build/deploy).'
required: true
Expand Down Expand Up @@ -98,18 +88,10 @@ jobs:
VERSION="${{ matrix.version }}"
ARCH="$( echo "${{ matrix.arch }}" | sed 's|/|-|g' )"
if [ "${{ inputs.artifact_prev_name_add_version }}" = "true" ]; then
NAME_PREV="${{ inputs.artifact_prefix }}-${PRE_HASH}-${VERSION}-${ARCH}-${{ inputs.stage_prev }}"
else
NAME_PREV="${{ inputs.artifact_prefix }}-${PRE_HASH}-${ARCH}-${{ inputs.stage_prev }}"
fi
if [ "${{ inputs.artifact_curr_name_add_version }}" = "true" ]; then
NAME_CURR="${{ inputs.artifact_prefix }}-${PRE_HASH}-${VERSION}-${ARCH}-${{ inputs.stage }}"
else
NAME_CURR="${{ inputs.artifact_prefix }}-${PRE_HASH}-${ARCH}-${{ inputs.stage }}"
fi
echo "::set-output name=prev::${NAME_PREV}"
echo "::set-output name=curr::${NAME_CURR}"
NAME_PREV="${{ inputs.artifact_prefix }}-${PRE_HASH}-${VERSION}-${ARCH}-${{ inputs.stage_prev }}"
NAME_CURR="${{ inputs.artifact_prefix }}-${PRE_HASH}-${VERSION}-${ARCH}-${{ inputs.stage }}"
echo "prev::${NAME_PREV}" >> $GITHUB_OUTPUT
echo "curr::${NAME_CURR}" >> $GITHUB_OUTPUT
- name: "[DEBUG] Show setup"
shell: bash
Expand Down

0 comments on commit 7ef54ab

Please sign in to comment.