Skip to content

Commit

Permalink
gh: add CI image builds for test* branches
Browse files Browse the repository at this point in the history
This is meant mostly for debugging, so that we do not have to merge to
main to test the CI image pipeline.

Signed-off-by: Kornilios Kourtis <kornilios@isovalent.com>
  • Loading branch information
kkourt committed Oct 31, 2023
1 parent b626392 commit 461abb6
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/build-images-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
push:
branches:
- main
- test*
paths-ignore:
- 'docs/**'

Expand Down Expand Up @@ -97,7 +98,7 @@ jobs:
# main branch pushes
- name: CI Build (main)
if: github.event_name == 'push'
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
id: docker_build_ci_main
with:
Expand All @@ -112,6 +113,22 @@ jobs:
quay.io/${{ github.repository_owner }}/${{ matrix.name }}-ci:${{ steps.tag.outputs.tag }}
quay.io/${{ github.repository_owner }}/${{ matrix.name }}-ci:latest
# non-main branch pushes
- name: CI Build (non-main)
if: ${{ github.event_name == 'push' && github.ref_name != 'main' }}
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
id: docker_build_ci_main
with:
provenance: false
context: .
file: ${{ matrix.dockerfile }}
push: true
platforms: linux/amd64,linux/arm64
build-args: |
TETRAGON_VERSION=${{ env.TETRAGON_VERSION }}
tags: |
quay.io/${{ github.repository_owner }}/${{ matrix.name }}-ci:${{ steps.tag.outputs.tag }}
- name: Sign Container Image
if: github.event_name == 'push'
env:
Expand Down

0 comments on commit 461abb6

Please sign in to comment.