Skip to content

Commit

Permalink
fix(ci): Updated all download and upload artifacts actions, on v4 ar…
Browse files Browse the repository at this point in the history
…tifacts are immutable (#184)

* Test and fix immutable artifacts

Update ci-api.yml

Update ci-bareos-app.tmpl

Bump upload and download artifacts version to v4

Test change to ci-api

* fix(ci): Updated all download and upload artifacts actions, v4 doesn't allow re-use of the same artifact

Signed-off-by: Daniele De Lorenzi <[email protected]>

---------

Signed-off-by: Daniele De Lorenzi <[email protected]>
  • Loading branch information
dark-vex authored Jun 8, 2024
1 parent 905cf7f commit 18d374a
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 36 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: build-artifact-api
name: build-artifact-api-tmp
path: build

build:
Expand All @@ -47,9 +47,9 @@ jobs:
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifact-api
name: build-artifact-api-tmp
path: build

- name: Set up QEMU
Expand All @@ -76,7 +76,7 @@ jobs:
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifact-api
path: build
Expand All @@ -102,7 +102,7 @@ jobs:
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifact-api
path: build
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/ci-bareos-app.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Prepare build file
uses: ./.github/actions/prepare-bareos-app
with:
bareos_app: __BAREOS_APP__

- name: Upload artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: build-artifact-__BAREOS_APP__
path: build
Expand All @@ -44,17 +44,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: build-artifact-__BAREOS_APP__
path: build

- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:latest
platforms: all
Expand All @@ -63,7 +63,7 @@ jobs:
uses: ./.github/actions/build-bareos-app

- name: Upload artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: build-artifact-__BAREOS_APP__
path: build
Expand All @@ -73,17 +73,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: build-artifact-__BAREOS_APP__
path: build

- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:latest
platforms: all
Expand All @@ -99,10 +99,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: build-artifact-__BAREOS_APP__
path: build
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: build-artifact-client
name: build-artifact-client-tmp
path: build

build:
Expand All @@ -47,9 +47,9 @@ jobs:
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifact-client
name: build-artifact-client-tmp
path: build

- name: Set up QEMU
Expand All @@ -76,7 +76,7 @@ jobs:
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifact-client
path: build
Expand All @@ -102,7 +102,7 @@ jobs:
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifact-client
path: build
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci-director.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: build-artifact-director
name: build-artifact-director-tmp
path: build

build:
Expand All @@ -47,9 +47,9 @@ jobs:
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifact-director
name: build-artifact-director-tmp
path: build

- name: Set up QEMU
Expand All @@ -76,7 +76,7 @@ jobs:
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifact-director
path: build
Expand All @@ -102,7 +102,7 @@ jobs:
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifact-director
path: build
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci-storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: build-artifact-storage
name: build-artifact-storage-tmp
path: build

build:
Expand All @@ -47,9 +47,9 @@ jobs:
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifact-storage
name: build-artifact-storage-tmp
path: build

- name: Set up QEMU
Expand All @@ -76,7 +76,7 @@ jobs:
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifact-storage
path: build
Expand All @@ -102,7 +102,7 @@ jobs:
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifact-storage
path: build
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci-webui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: build-artifact-webui
name: build-artifact-webui-tmp
path: build

build:
Expand All @@ -47,9 +47,9 @@ jobs:
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifact-webui
name: build-artifact-webui-tmp
path: build

- name: Set up QEMU
Expand All @@ -76,7 +76,7 @@ jobs:
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifact-webui
path: build
Expand All @@ -102,7 +102,7 @@ jobs:
uses: actions/checkout@v4

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

0 comments on commit 18d374a

Please sign in to comment.