diff --git a/.github/workflows/build-docker-image.yaml b/.github/workflows/build-docker-image.yaml index 0095d0c..c30a01c 100644 --- a/.github/workflows/build-docker-image.yaml +++ b/.github/workflows/build-docker-image.yaml @@ -2,18 +2,23 @@ name: Build Docker image on: workflow_dispatch: +concurrency: + env: os: mageia jobs: clone-repo: + name: Clone repo uses: ./.github/workflows/checkout-self-hosted.yaml build-rootfs: + name: Build rootfs needs: clone-repo uses: ./.github/workflows/build-rootfs.yaml build_for_target: + name: Build for target runs-on: self-hosted needs: build-rootfs steps: @@ -25,7 +30,7 @@ jobs: ./docker.tar.xz key: image-${{ env.os }}-docker-${{ hashFiles('*.sqfs', '*.yaml') }} - - name: Make target 'build-docker' + - name: Make build-docker if: steps.build.outputs.cache-hit != 'true' run: make build-docker diff --git a/.github/workflows/build-incus-image.yaml b/.github/workflows/build-incus-image.yaml index c24e42c..0095d2f 100644 --- a/.github/workflows/build-incus-image.yaml +++ b/.github/workflows/build-incus-image.yaml @@ -2,18 +2,23 @@ name: Build Incus image on: workflow_dispatch: +concurrency: + env: os: mageia jobs: clone-repo: + name: Clone repo uses: ./.github/workflows/checkout-self-hosted.yaml build-rootfs: + name: Build rootfs needs: clone-repo uses: ./.github/workflows/build-rootfs.yaml build-for-target: + name: Build for target runs-on: self-hosted needs: build-rootfs steps: @@ -23,7 +28,7 @@ jobs: with: path: ./out/disk.qcow2 key: image-${{ env.os }}-incus-${{ hashFiles('*.sqfs', '*.yaml') }} - - name: Make target 'build-incus' + - name: Make build-incus if: steps.build.outputs.cache-hit != 'true' run: make build-incus diff --git a/.github/workflows/build-lxc-image.yaml b/.github/workflows/build-lxc-image.yaml index e55f6b3..ca78b89 100644 --- a/.github/workflows/build-lxc-image.yaml +++ b/.github/workflows/build-lxc-image.yaml @@ -2,18 +2,23 @@ name: Build LXC image on: workflow_dispatch: +concurrency: + env: os: mageia jobs: clone-repo: + name: Clone repo uses: ./.github/workflows/checkout-self-hosted.yaml build-rootfs: + name: Build rootfs needs: clone-repo uses: ./.github/workflows/build-rootfs.yaml build-for-target: + name: Build for target runs-on: self-hosted needs: build-rootfs steps: