Skip to content

Commit

Permalink
Upgrade to actions/download-artifact@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed Apr 28, 2024
1 parent 8381e1f commit 0d70852
Show file tree
Hide file tree
Showing 30 changed files with 124 additions and 94 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/.container.template.j2
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'

Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"

- name: "Log into GitHub Container Registry"
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand All @@ -141,9 +141,9 @@ jobs:

- name: Upload digest
if: ${{ github.repository == 'saltstack/salt-ci-containers' && contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}-${{ matrix.dockerinfo.platform || 'no-platform'}}"
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'

Expand All @@ -191,9 +191,10 @@ jobs:
tools --debug --version

- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}
pattern: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}-*
merge-multiple: true
path: /tmp/digests

- name: Show digests
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/almalinux-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
if: ${{ github.repository == 'saltstack/salt-ci-containers' && contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) }}
uses: actions/upload-artifact@v4
with:
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}-${{ matrix.dockerinfo.platform || 'no-platform'}}"
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down Expand Up @@ -191,9 +191,10 @@ jobs:
tools --debug --version
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}
pattern: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}-*
merge-multiple: true
path: /tmp/digests

- name: Show digests
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/amazonlinux-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
if: ${{ github.repository == 'saltstack/salt-ci-containers' && contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) }}
uses: actions/upload-artifact@v4
with:
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}-${{ matrix.dockerinfo.platform || 'no-platform'}}"
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down Expand Up @@ -191,9 +191,10 @@ jobs:
tools --debug --version
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}
pattern: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}-*
merge-multiple: true
path: /tmp/digests

- name: Show digests
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/archlinux-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
if: ${{ github.repository == 'saltstack/salt-ci-containers' && contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) }}
uses: actions/upload-artifact@v4
with:
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}-${{ matrix.dockerinfo.platform || 'no-platform'}}"
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down Expand Up @@ -191,9 +191,10 @@ jobs:
tools --debug --version
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}
pattern: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}-*
merge-multiple: true
path: /tmp/digests

- name: Show digests
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/busybox-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
if: ${{ github.repository == 'saltstack/salt-ci-containers' && contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) }}
uses: actions/upload-artifact@v4
with:
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}-${{ matrix.dockerinfo.platform || 'no-platform'}}"
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down Expand Up @@ -191,9 +191,10 @@ jobs:
tools --debug --version
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}
pattern: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}-*
merge-multiple: true
path: /tmp/digests

- name: Show digests
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/centos-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
if: ${{ github.repository == 'saltstack/salt-ci-containers' && contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) }}
uses: actions/upload-artifact@v4
with:
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}-${{ matrix.dockerinfo.platform || 'no-platform'}}"
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down Expand Up @@ -191,9 +191,10 @@ jobs:
tools --debug --version
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}
pattern: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}-*
merge-multiple: true
path: /tmp/digests

- name: Show digests
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/centos-stream-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
if: ${{ github.repository == 'saltstack/salt-ci-containers' && contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) }}
uses: actions/upload-artifact@v4
with:
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}-${{ matrix.dockerinfo.platform || 'no-platform'}}"
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down Expand Up @@ -191,9 +191,10 @@ jobs:
tools --debug --version
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}
pattern: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}-*
merge-multiple: true
path: /tmp/digests

- name: Show digests
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/consul-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
if: ${{ github.repository == 'saltstack/salt-ci-containers' && contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) }}
uses: actions/upload-artifact@v4
with:
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}-${{ matrix.dockerinfo.platform || 'no-platform'}}"
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down Expand Up @@ -191,9 +191,10 @@ jobs:
tools --debug --version
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}
pattern: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}-*
merge-multiple: true
path: /tmp/digests

- name: Show digests
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/debian-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
if: ${{ github.repository == 'saltstack/salt-ci-containers' && contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) }}
uses: actions/upload-artifact@v4
with:
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}-${{ matrix.dockerinfo.platform || 'no-platform'}}"
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down Expand Up @@ -191,9 +191,10 @@ jobs:
tools --debug --version
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}
pattern: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}-*
merge-multiple: true
path: /tmp/digests

- name: Show digests
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/etcd-v2-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
if: ${{ github.repository == 'saltstack/salt-ci-containers' && contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) }}
uses: actions/upload-artifact@v4
with:
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}-${{ matrix.dockerinfo.platform || 'no-platform'}}"
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down Expand Up @@ -191,9 +191,10 @@ jobs:
tools --debug --version
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}
pattern: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}-*
merge-multiple: true
path: /tmp/digests

- name: Show digests
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/etcd-v3-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
if: ${{ github.repository == 'saltstack/salt-ci-containers' && contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) }}
uses: actions/upload-artifact@v4
with:
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}-${{ matrix.dockerinfo.platform || 'no-platform'}}"
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down Expand Up @@ -191,9 +191,10 @@ jobs:
tools --debug --version
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}
pattern: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}-*
merge-multiple: true
path: /tmp/digests

- name: Show digests
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/fedora-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
if: ${{ github.repository == 'saltstack/salt-ci-containers' && contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) }}
uses: actions/upload-artifact@v4
with:
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}-${{ matrix.dockerinfo.platform || 'no-platform'}}"
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down Expand Up @@ -191,9 +191,10 @@ jobs:
tools --debug --version
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}
pattern: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}-*
merge-multiple: true
path: /tmp/digests

- name: Show digests
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/mariadb-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
if: ${{ github.repository == 'saltstack/salt-ci-containers' && contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) }}
uses: actions/upload-artifact@v4
with:
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}-${{ matrix.dockerinfo.platform || 'no-platform'}}"
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down Expand Up @@ -191,9 +191,10 @@ jobs:
tools --debug --version
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}
pattern: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}-*
merge-multiple: true
path: /tmp/digests

- name: Show digests
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/mysql-server-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
if: ${{ github.repository == 'saltstack/salt-ci-containers' && contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) }}
uses: actions/upload-artifact@v4
with:
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}-${{ matrix.dockerinfo.platform || 'no-platform'}}"
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down Expand Up @@ -191,9 +191,10 @@ jobs:
tools --debug --version
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}
pattern: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}-*
merge-multiple: true
path: /tmp/digests

- name: Show digests
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/openldap-minion-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
if: ${{ github.repository == 'saltstack/salt-ci-containers' && contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) }}
uses: actions/upload-artifact@v4
with:
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}-${{ matrix.dockerinfo.platform || 'no-platform'}}"
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down Expand Up @@ -191,9 +191,10 @@ jobs:
tools --debug --version
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}
pattern: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}-*
merge-multiple: true
path: /tmp/digests

- name: Show digests
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/opensuse-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
if: ${{ github.repository == 'saltstack/salt-ci-containers' && contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) }}
uses: actions/upload-artifact@v4
with:
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}
name: digests-${{ matrix.dockerinfo.name }}-${{ matrix.dockerinfo.tag }}-${{ matrix.dockerinfo.platform || 'no-platform'}}"
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down Expand Up @@ -191,9 +191,10 @@ jobs:
tools --debug --version
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}
pattern: digests-${{ needs.matrix-generator.outputs.name }}-${{ matrix.tag }}-*
merge-multiple: true
path: /tmp/digests

- name: Show digests
Expand Down

0 comments on commit 0d70852

Please sign in to comment.