Refactor CI workflow #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |