Skip to content

Commit

Permalink
need to remove slash from digest artifact name
Browse files Browse the repository at this point in the history
  • Loading branch information
tomeichlersmith authored Aug 22, 2023
1 parent e024d97 commit 1f75af2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,22 @@ jobs:
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
-
name: Export digest
id: export-digest
run: |
mkdir digest
digest="${{ steps.build.outputs.digest }}"
touch "digest/${digest#sha256:}"
platform="${{ matrix.platform }}"
digest_name="${platform#linux/}-digest"
digest_file="digest/${digest#sha256:}"
touch "${digest_file}"
echo "name=${digest_name}" >> "$GITHUB_OUTPUT"
echo "file=${digest_file}" >> "$GITHUB_OUTPUT"
-
name: Upload digest
uses: actions/upload-artifact@v3
with:
name: ${{matrix.platform}}-digest
path: digest/*
name: ${{ steps.export-digest.outputs.name }}
path: ${{ steps.export-digest.outputs.file }}
if-no-files-found: error

merge:
Expand Down

0 comments on commit 1f75af2

Please sign in to comment.