Skip to content

Commit

Permalink
Merge pull request #70 from devilbox/artifact-prefix
Browse files Browse the repository at this point in the history
Fix artifact prefix
  • Loading branch information
cytopia committed Nov 18, 2022
2 parents a65a3ab + ab06aa5 commit 5a3dad1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/docker-multistage-push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,10 @@ jobs:
- name: "[SETUP] Set artifact names"
id: set-artifact-name
run: |
PRE_HASH="$( git rev-parse HEAD | head -c 10 )"
VERSION="${{ matrix.VERSION }}"
ARCH="$( echo "${{ matrix.ARCH }}" | sed 's|/|-|g' )"
NAME_CURR="${{ inputs.artifact_prefix }}-${PRE_HASH}-${VERSION}-${ARCH}-${{ inputs.stage }}"
NAME_CURR="${{ inputs.artifact_prefix }}-${VERSION}-${ARCH}-${{ inputs.stage }}"
echo "curr=${NAME_CURR}" >> $GITHUB_OUTPUT
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/docker-multistage-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,10 @@ jobs:
- name: "[SETUP] Set artifact names"
id: set-artifact-name
run: |
PRE_HASH="$( git rev-parse HEAD | head -c 10 )"
VERSION="${{ matrix.VERSION }}"
ARCH="$( echo "${{ matrix.ARCH }}" | sed 's|/|-|g' )"
NAME_CURR="${{ inputs.artifact_prefix }}-${PRE_HASH}-${VERSION}-${ARCH}-${{ inputs.stage }}"
NAME_CURR="${{ inputs.artifact_prefix }}-${VERSION}-${ARCH}-${{ inputs.stage }}"
echo "curr=${NAME_CURR}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 5a3dad1

Please sign in to comment.