Skip to content

Commit 35ccc45

Browse files
committed
ci: Run workflow on release branches
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]>
1 parent 67557ad commit 35ccc45

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@ name: CI
22

33
on:
44
push:
5-
branches: [ testing-master ]
6-
tags: [ 'v*' ]
5+
branches:
6+
- testing-master
7+
- v*-branch
8+
tags:
9+
- v*
710
pull_request:
8-
branches: [ testing-master ]
11+
branches:
12+
- testing-master
13+
- v*-branch
914

1015
permissions:
1116
packages: write
@@ -61,6 +66,10 @@ jobs:
6166
with:
6267
images: |
6368
ghcr.io/zephyrproject-rtos/ci-testing
69+
tags: |
70+
type=ref,event=branch
71+
type=ref,event=tag
72+
type=raw,value=latest,enable={{is_default_branch}}
6473
6574
- name: Generate push metadata for Developer image
6675
if: ${{ github.event_name != 'pull_request' }}
@@ -69,6 +78,10 @@ jobs:
6978
with:
7079
images: |
7180
ghcr.io/zephyrproject-rtos/zephyr-build-testing
81+
tags: |
82+
type=ref,event=branch
83+
type=ref,event=tag
84+
type=raw,value=latest,enable={{is_default_branch}}
7285
7386
- name: Set up QEMU
7487
uses: docker/setup-qemu-action@v1

0 commit comments

Comments
 (0)