Skip to content

Refactor CI workflow #342

Refactor CI workflow

Refactor CI workflow #342

Workflow file for this run

---
name: Build, test and push Docker Images
on:
pull_request:
push:
branches:
- main
tags:
- "v*"
workflow_dispatch:
# https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
# only cancel in-progress jobs or runs for the current workflow - matches against branch & tags
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
amd64-build:
uses: ./.github/workflows/build.yml
with:
architecture: amd64
runsOn: ubuntu-latest
# TODO: Split test from build
#amd64-test:
# needs: amd64-build
# uses: ./.github/workflows/test.yml
# with:
# architecture: amd64
# runsOn: ubuntu-latest
# Postpone ARM build until amd64 succeeds
# but run it in parallel with amd64 tests.
arm-build:
uses: ./.github/workflows/build.yml
needs: amd64-build
if: false
with:
architecture: arm64
runsOn: ARM64