Skip to content

Commit

Permalink
Merged jobs as steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Bouijoux committed Feb 14, 2024
1 parent bad6848 commit 5b1effc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 39 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/build-docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,20 @@ name: Build Docker image
on:
workflow_dispatch:

concurrency:
group: default

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:
- name: Clone repo
uses: ./.github/workflows/checkout-self-hosted.yaml

- name: Build rootfs
uses: ./.github/workflows/build-rootfs.yaml

- name: Cache build
id: build
uses: actions/cache@v4
Expand Down
19 changes: 6 additions & 13 deletions .github/workflows/build-incus-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,20 @@ name: Build Incus image
on:
workflow_dispatch:

concurrency:
group: default

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:
- name: Clone repo
uses: ./.github/workflows/checkout-self-hosted.yaml

- name: Build rootfs
uses: ./.github/workflows/build-rootfs.yaml

- name: Cache build
id: build
uses: actions/cache@v4
Expand Down
19 changes: 6 additions & 13 deletions .github/workflows/build-lxc-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,20 @@ name: Build LXC image
on:
workflow_dispatch:

concurrency:
group: default

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:
- name: Clone repo
uses: ./.github/workflows/checkout-self-hosted.yaml

- name: Build rootfs
uses: ./.github/workflows/build-rootfs.yaml

- name: Cache build
id: build
uses: actions/cache@v4
Expand Down

0 comments on commit 5b1effc

Please sign in to comment.