Skip to content

Commit

Permalink
Update artifact actions in GHA (#1379)
Browse files Browse the repository at this point in the history
  • Loading branch information
BradLugo authored Jan 23, 2024
1 parent 159e8ac commit 2a6a0fc
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Archive the build to preserve permissions
run: tar -cvzf updater-build.tgz bin/updater

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: updater-build
path: updater-build.tgz
Expand All @@ -61,7 +61,7 @@ jobs:
- name: Archive the build to preserve permissions
run: tar -cvzf scanner-build.tgz image/scanner/bin/scanner

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: scanner-build
path: scanner-build.tgz
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
- name: Cache Go dependencies
uses: ./.github/actions/cache-go-dependencies

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: scanner-build

Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
- name: Cache Go dependencies
uses: ./.github/actions/cache-go-dependencies

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: scanner-build

Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:

- uses: ./.github/actions/job-preamble

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: updater-build

Expand All @@ -176,12 +176,12 @@ jobs:
source ./scripts/ci/lib.sh
generate_genesis_dump
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: genesis-dump
path: /tmp/genesis-dump/genesis-dump.zip

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: vuln-dump
path: /tmp/vuln-dump
Expand All @@ -204,15 +204,15 @@ jobs:

- uses: ./.github/actions/job-preamble

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: updater-build

- name: Unpack updater build
run: |
tar xvzf updater-build.tgz
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: genesis-dump
path: /tmp/genesis-dump
Expand All @@ -222,7 +222,7 @@ jobs:
source ./scripts/ci/lib.sh
generate_db_dump
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: db-dump
path: /tmp/postgres/pg-definitions.sql.gz
Expand All @@ -246,15 +246,15 @@ jobs:

- uses: ./.github/actions/job-preamble

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: scanner-build

- name: Unpack scanner build
run: |
tar xvzf scanner-build.tgz
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
if: |
github.event_name != 'pull_request' ||
contains(github.event.pull_request.labels.*.name, 'generate-dumps-on-pr')
Expand All @@ -276,7 +276,7 @@ jobs:
- name: Archive the bundle to preserve permissions
run: tar -cvzf bundle.tgz image/scanner/rhel

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: scanner-bundle
path: bundle.tgz
Expand All @@ -299,7 +299,7 @@ jobs:

- uses: ./.github/actions/job-preamble

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
if: |
github.event_name != 'pull_request' ||
contains(github.event.pull_request.labels.*.name, 'generate-dumps-on-pr')
Expand All @@ -315,7 +315,7 @@ jobs:
- name: Make db bundle
run: image/db/rhel/create-bundle.sh image/db image/db/rhel

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: scanner-db-bundle
path: image/db/rhel
Expand Down Expand Up @@ -344,15 +344,15 @@ jobs:

- uses: ./.github/actions/job-preamble

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: scanner-bundle

- name: Unpack bundle
run: |
tar xvzf bundle.tgz
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: scanner-db-bundle
path: image/db/rhel
Expand Down Expand Up @@ -410,15 +410,15 @@ jobs:

- uses: ./.github/actions/job-preamble

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: updater-build

- name: Unpack updater build
run: |
tar xvzf updater-build.tgz
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
name: genesis-dump
Expand Down Expand Up @@ -446,7 +446,7 @@ jobs:

- uses: ./.github/actions/job-preamble

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: db-dump
path: /tmp/postgres
Expand All @@ -473,12 +473,12 @@ jobs:

- uses: ./.github/actions/job-preamble

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: vuln-dump
path: /tmp/vuln-dump

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: db-dump
path: /tmp/postgres
Expand All @@ -505,7 +505,7 @@ jobs:

- uses: ./.github/actions/job-preamble

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: vuln-dump
path: /tmp/vuln-dump
Expand Down

0 comments on commit 2a6a0fc

Please sign in to comment.