-
Notifications
You must be signed in to change notification settings - Fork 14
42 lines (37 loc) · 1.05 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
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, 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