-
Notifications
You must be signed in to change notification settings - Fork 4
66 lines (52 loc) · 1.78 KB
/
build.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
55
56
57
58
59
60
61
62
63
64
65
66
name: Build
on:
push:
branches: [master, dev]
pull_request:
branches: [master]
jobs:
manager:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Build Image
run: |
make -C cmd/github-actions-manager build
- name: Push Image
if: ${{ github.event_name == 'push' }}
run: |-
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
test "$GITHUB_REF_NAME" = master && \
make -C cmd/github-actions-manager push TAG=latest || \
make -C cmd/github-actions-manager push TAG="$GITHUB_REF_NAME"
kube-controller:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Build Image
run: |
make -C cmd/kube-controller build
- name: Push Image
if: ${{ github.event_name == 'push' }}
run: |-
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
test "$GITHUB_REF_NAME" = master && \
make -C cmd/kube-controller push TAG=latest || \
make -C cmd/kube-controller push TAG="$GITHUB_REF_NAME"
kube-agent:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.18.2'
- name: Build Artifact
run: |
make -C cmd/kube-agent build
- name: Push Artifact
if: ${{ github.event_name == 'push' }}
run: |-
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
test "$GITHUB_REF_NAME" = master && \
make -C cmd/kube-agent push TAG=latest || \
make -C cmd/kube-agent push TAG="$GITHUB_REF_NAME"