Skip to content

Commit

Permalink
ci: Run workflow on release branches
Browse files Browse the repository at this point in the history
This commit updates the CI workflow to run on the release branches
(v*-branch).

Note that the push tags are now manually specified to ensure that the
`latest` tag is only set for the pushes to the default branch.

Signed-off-by: Stephanos Ioannidis <[email protected]>
  • Loading branch information
stephanosio committed Jul 27, 2022
1 parent 67557ad commit 35ccc45
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ name: CI

on:
push:
branches: [ testing-master ]
tags: [ 'v*' ]
branches:
- testing-master
- v*-branch
tags:
- v*
pull_request:
branches: [ testing-master ]
branches:
- testing-master
- v*-branch

permissions:
packages: write
Expand Down Expand Up @@ -61,6 +66,10 @@ jobs:
with:
images: |
ghcr.io/zephyrproject-rtos/ci-testing
tags: |
type=ref,event=branch
type=ref,event=tag
type=raw,value=latest,enable={{is_default_branch}}
- name: Generate push metadata for Developer image
if: ${{ github.event_name != 'pull_request' }}
Expand All @@ -69,6 +78,10 @@ jobs:
with:
images: |
ghcr.io/zephyrproject-rtos/zephyr-build-testing
tags: |
type=ref,event=branch
type=ref,event=tag
type=raw,value=latest,enable={{is_default_branch}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand Down

0 comments on commit 35ccc45

Please sign in to comment.