Skip to content

Commit

Permalink
Tring to fix to use newest artifact actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sinoru committed Feb 2, 2024
1 parent 88a0777 commit e9b5c81
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,15 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.DOCKER_IMAGE }},push-by-digest=${{ github.event_name != 'pull_request' }},name-canonical=true,push=${{ github.event_name != 'pull_request' }}
- name: Export digest
id: digest
run: |
export DIGESTS_PATH="$RUNNER_TEMP/$(uuidgen)/digests"
echo "DIGESTS_PATH=$DIGESTS_PATH" >>${GITHUB_ENV}
mkdir -p $DIGESTS_PATH
digest="${{ steps.build.outputs.digest }}"
touch "$DIGESTS_PATH/${digest#sha256:}"
echo "digest=$DIGESTS_PATH/${digest#sha256:}" >> $GITHUB_OUTPUT
- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests
path: ${{ env.DIGESTS_PATH }}/*
if-no-files-found: error
name: ${{ steps.digest.outputs.digest }}
path: /dev/null
retention-days: 1

mix:
Expand All @@ -90,9 +87,8 @@ jobs:
export DIGESTS_PATH="$RUNNER_TEMP/$(uuidgen)/digests"
echo "DIGESTS_PATH=$DIGESTS_PATH" >>${GITHUB_ENV}
- name: Download digests
uses: actions/download-artifact@v3\4
uses: actions/download-artifact@v4
with:
name: digests
path: ${{ env.DIGESTS_PATH }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit e9b5c81

Please sign in to comment.