-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (47 loc) · 1.49 KB
/
build.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Build and Push Purescript-Tools image
on:
push:
defaults:
run:
shell: bash
jobs:
build_and_push_image:
strategy:
matrix:
os: [[self-hosted, linux, x64], [self-hosted, linux, arm64]]
runs-on: ${{ matrix.os }}
name: Build and Push Docker Image
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Log in to the Github Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker buildx
uses: docker/setup-buildx-action@v2
- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v2
- name: Build And Push Image
run: |
./build-image.sh build-and-push-arch-tag
build_and_push_manifest:
name: Build manifest docker image
runs-on: [self-hosted, linux, x64]
needs: [build_and_push_image]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker buildx
uses: docker/setup-buildx-action@v2
- name: Log in to the Github Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push manifest
run: |
./build-image.sh push-manifest