Skip to content

Refactor CI workflow #11

Refactor CI workflow

Refactor CI workflow #11

Workflow file for this run

---
name: 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, but we'd need to
# pass outputs from build here.
#amd64-test:
# needs: amd64-build
# uses: ./.github/workflows/test.yml
# with:
# architecture: amd64
# runsOn: ubuntu-latest
# Postpone ARM build until amd64 build and tests succeeds
arm-build:
uses: ./.github/workflows/build.yml
needs: amd64-build
if: false
with:
architecture: arm64
runsOn: ARM64