Skip to content

Commit

Permalink
chore: refactor workflows
Browse files Browse the repository at this point in the history
Bring in concurrency changes and make sure slack notify gets triggered
for all pipelines.

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed Oct 4, 2023
1 parent 639ddad commit f172d52
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 47 deletions.
43 changes: 42 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: default
concurrency:
group: ${{ github.event.label == null && github.head_ref || github.run_id }}
cancel-in-progress: true
on:
push:
branches:
Expand All @@ -10,9 +13,14 @@ on:
branches:
- main
- release-*
types:
- opened
- synchronize
- reopened
- labeled
jobs:
default:
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
if: (!startsWith(github.head_ref, 'renovate/') && !startsWith(github.head_ref, 'dependabot/')) && (github.event.label == null || (contains(fromJSON('["integration/reproducibility"]'), github.event.label.name)))
permissions:
packages: write
runs-on:
Expand Down Expand Up @@ -55,3 +63,36 @@ jobs:
if: github.event_name != 'pull_request'
run: |
make PUSH=true
reproducibility:
runs-on:
- self-hosted
- pkgs
if: ${{ contains(github.event.pull_request.labels.*.name, 'integration/reproducibility') }}
needs:
- default
services:
buildkitd:
image: moby/buildkit:buildx-stable-1
ports:
- 1234:1234
options: --privileged
volumes:
- /var/lib/buildkit/${{ github.repository }}:/var/lib/buildkit
- /usr/etc/buildkit/buildkitd.toml:/etc/buildkit/buildkitd.toml
steps:
- name: checkout
uses: actions/checkout@v3
- name: Unshallow
run: |
git fetch --prune --unshallow
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: remote
endpoint: tcp://localhost:1234
append: |
- endpoint: tcp://buildkit-arm64.ci.svc.cluster.local:1234
platforms: linux/arm64
- name: reproducibility
run: |
make reproducibility-test
33 changes: 32 additions & 1 deletion .github/workflows/cron.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,38 @@
name: weekly
concurrency:
group: ${{ github.event.label == null && github.head_ref || github.run_id }}
cancel-in-progress: true
on:
schedule:
- cron: '30 1 * * 1'
jobs:
reproducibility:
uses: ./.github/workflows/reproducibility.yaml
runs-on:
- self-hosted
- pkgs
services:
buildkitd:
image: moby/buildkit:buildx-stable-1
ports:
- 1234:1234
options: --privileged
volumes:
- /var/lib/buildkit/${{ github.repository }}:/var/lib/buildkit
- /usr/etc/buildkit/buildkitd.toml:/etc/buildkit/buildkitd.toml
steps:
- name: checkout
uses: actions/checkout@v3
- name: Unshallow
run: |
git fetch --prune --unshallow
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: remote
endpoint: tcp://localhost:1234
append: |
- endpoint: tcp://buildkit-arm64.ci.svc.cluster.local:1234
platforms: linux/arm64
- name: reproducibility
run: |
make reproducibility-test
11 changes: 0 additions & 11 deletions .github/workflows/integration.yaml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/reproducibility.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/slack-notify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: slack-notify
workflow_run:
workflows:
- default
- weekly
- integration
types:
- completed
jobs:
Expand Down

0 comments on commit f172d52

Please sign in to comment.