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 eb039d9
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 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,12 @@ jobs:
with:
images: |
ghcr.io/zephyrproject-rtos/ci-testing
flavor: |
latest=false
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 +80,12 @@ jobs:
with:
images: |
ghcr.io/zephyrproject-rtos/zephyr-build-testing
flavor: |
latest=false
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 eb039d9

Please sign in to comment.