Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gha] Bump actions/upload-artifact from 3 to 4 #14

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,19 @@ jobs:
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
shell: bash

- name: Sanitize platform string
id: platform
env:
PLATFORM_STRING: ${{ matrix.platform }}
run: |
echo "value=${PLATFORM_STRING//\//_}" >> $GITHUB_OUTPUT
shell: bash

- name: Upload digest
if: needs.prepare.outputs.push == 'true'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: digests
path: /tmp/digests/*
Expand All @@ -116,10 +125,15 @@ jobs:
packages: write
steps:
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: digests
path: /tmp/digests
path: artifacts

- name: Merge artifacts
run: |
mkdir /tmp/digests
mv artifacts/*/* /tmp/digests
shell: bash

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down