-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.47 KB
/
master.yml
File metadata and controls
51 lines (41 loc) · 1.47 KB
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
43
44
45
46
47
48
49
name: Merge into master - Build and Run Tests
# if statements modified to avoid: https://stackoverflow.com/questions/69354003/github-action-job-fire-when-previous-job-skipped
on:
push:
branches: ["main"]
env:
REGISTRY: ghcr.io
DOCKERIMAGE: ghcr.io/algebraic-programming/taskr/buildenv
jobs:
build-docker-amd64:
uses: Algebraic-Programming/TaskR/.github/workflows/master-build-workflow.yml@main
with:
os: ubuntu-24.04
arch: amd64
push-buildenv-manifest:
runs-on: ubuntu-latest
needs: [ build-docker-amd64]
if: |
always() &&
(contains(needs.build-docker-amd64.result, 'success'))
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create and push manifest images
run:
docker buildx imagetools create --tag ${{ env.DOCKERIMAGE }}:latest ${{ env.DOCKERIMAGE }}:amd64-latest
compile-and-test-amd64:
needs: [ push-buildenv-manifest ]
if: |
always() &&
(contains(needs.push-buildenv-manifest.result, 'success') || contains(needs.push-buildenv-manifest.result, 'skipped'))
uses: Algebraic-Programming/TaskR/.github/workflows/master-test-workflow.yml@main
with:
os: ubuntu-24.04
arch: amd64