-
Notifications
You must be signed in to change notification settings - Fork 8
54 lines (48 loc) · 1.39 KB
/
build-deploy-refactor.yaml
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
name: build flux-operator refactor
on:
pull_request: []
push:
branches:
- test-refactor-modular
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: make and build refactor container
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: ^1.20
- name: GHCR Login
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Deploy Container
run: make test-deploy DEVIMG=ghcr.io/flux-framework/flux-operator:refactor-0-2-0
# Only build arm image on merge, takes too long otherwise
build-arm:
runs-on: ubuntu-latest
name: make and build arm
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: ^1.20
- name: GHCR Login
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Add custom buildx ARM builder
run: |
docker buildx create --name armbuilder
docker buildx use armbuilder
docker buildx inspect --bootstrap
- name: Deploy ARM Container
run: make arm-deploy ARMIMG=ghcr.io/flux-framework/flux-operator:refactor-arm-0-2-0