Skip to content

Commit eb039d9

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 eb039d9

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/ci.yml

Lines changed: 20 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,12 @@ jobs:
6166
with:
6267
images: |
6368
ghcr.io/zephyrproject-rtos/ci-testing
69+
flavor: |
70+
latest=false
71+
tags: |
72+
type=ref,event=branch
73+
type=ref,event=tag
74+
type=raw,value=latest,enable={{is_default_branch}}
6475
6576
- name: Generate push metadata for Developer image
6677
if: ${{ github.event_name != 'pull_request' }}
@@ -69,6 +80,12 @@ jobs:
6980
with:
7081
images: |
7182
ghcr.io/zephyrproject-rtos/zephyr-build-testing
83+
flavor: |
84+
latest=false
85+
tags: |
86+
type=ref,event=branch
87+
type=ref,event=tag
88+
type=raw,value=latest,enable={{is_default_branch}}
7289
7390
- name: Set up QEMU
7491
uses: docker/setup-qemu-action@v1

0 commit comments

Comments
 (0)