Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
ci: bump action for artifact updload/download (#1084)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgacsal authored Jan 11, 2024
1 parent 84c3d4a commit 8099c85
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build-and-push-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,23 @@ jobs:
- name: Export digest
if: inputs.push
id: digest
run: |
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
echo "digest=${digest#sha256:}" >> "$GITHUB_OUTPUT"
- name: Upload digests
if: inputs.push
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ needs.build-vars.outputs.digests-cache-name }}
name: ${{ needs.build-vars.outputs.digests-cache-name }}-${{ steps.digest.outputs.digest }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
compression-level: 0

merge-and-push:
if: inputs.push
Expand All @@ -119,9 +123,10 @@ jobs:
- build-and-push
steps:
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ needs.build-vars.outputs.digests-cache-name }}
pattern: ${{ needs.build-vars.outputs.digests-cache-name }}-*
merge-multiple: true
path: /tmp/digests

- name: Set up Docker Buildx
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
run: make dist-gcp-deployment

- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifacts
path: |
Expand All @@ -114,6 +114,7 @@ jobs:
dist/bicep/vmclarity.json
dist/bicep/vmclarity-UI.json
if-no-files-found: error
compression-level: 0

main_release:
needs:
Expand All @@ -130,7 +131,7 @@ jobs:
fetch-depth: 0

- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: artifacts
path: dist
Expand Down

0 comments on commit 8099c85

Please sign in to comment.