Skip to content

Commit

Permalink
ci: refactor to use remote wf inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
trfore committed Jul 3, 2024
1 parent 284ec46 commit 46c4aea
Showing 1 changed file with 37 additions and 5 deletions.
42 changes: 37 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,44 @@
name: CI
on:
workflow_dispatch:
push:
branches: [main]
branches: ["*"]
paths:
- 'Dockerfile'
- "Dockerfile"
pull_request:
branches: ["*"]
paths-ignore:
- "**.md"
- "LICENSE"
workflow_dispatch:

concurrency:
group: ${{ github.workflow}}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
test_build:
uses: trfore/docker-image/.github/workflows/test_systemd.yml@main # remote repo
cgroup-v1:
uses: trfore/docker-image/.github/workflows/test_systemd.yml@main
with:
continue-on-error: true
runner: ubuntu-20.04
volume-permission: ro

cgroup-v2:
uses: trfore/docker-image/.github/workflows/test_systemd.yml@main
with:
continue-on-error: false
runner: ubuntu-22.04
volume-permission: rw

check:
if: always() && failure()
needs:
- cgroup-v1
- cgroup-v2
runs-on: ubuntu-latest
steps:
- run: >-
python -c "assert set([
'${{ needs.cgroup-v1.result }}',
'${{ needs.cgroup-v2.result }}',
]) == {'success'}"

0 comments on commit 46c4aea

Please sign in to comment.