Skip to content

Commit

Permalink
build devcontainer if pull request has devcontainer:build label
Browse files Browse the repository at this point in the history
  • Loading branch information
jkaflik committed Aug 29, 2024
1 parent a946835 commit 12d4850
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ on:
branches:
- 'main'
pull_request:
branches:
- 'main'
types:
- opened
- synchronize
- reopened
- labeled

concurrency:
group: ci-buildtrain-${{ github.ref }}-1
group: ci-buildtrain-${{ github.ref }}-devcontainer
cancel-in-progress: true

permissions:
Expand All @@ -19,6 +22,7 @@ permissions:

jobs:
build:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'devcontainer:build'))
strategy:
matrix:
arch: [ linux/arm64 , linux/amd64 ]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

# Allow to stop obsolete workflows
concurrency:
group: ci-buildtrain-${{ github.ref }}-1
group: ci-buildtrain-${{ github.ref }}-image
cancel-in-progress: true

# permissions are needed if pushing to ghcr.io
Expand Down

0 comments on commit 12d4850

Please sign in to comment.