Skip to content

Commit

Permalink
Set workflows concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Bouijoux committed Feb 14, 2024
1 parent bbb9e9b commit f16711e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build-docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/build-incus-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-lxc-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f16711e

Please sign in to comment.