-
Notifications
You must be signed in to change notification settings - Fork 34
61 lines (53 loc) · 1.4 KB
/
ci-nightly-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: ci-nightly-build
on:
pull_request:
types:
- labeled
push:
branches:
- main
paths:
- "apis/**"
- "cmd/**"
- "config/**"
- "internal/**"
- "pkg/**"
- ".gitmodules"
- "manifests/**"
- "vArmor-ebpf/**" # check submodule content
- ".github/workflows/ci-nightly-build.yml"
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.SetVersion.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.22"
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
platforms: linux/amd64,linux/arm64/v8
- name: Run build
run: make docker-build-dev
- name: Package helm chart
run: make helm-package-dev
- name: Login to Volc CR
uses: docker/login-action@v3
with:
registry: elkeid-ap-southeast-1.cr.volces.com
username: ${{ secrets.PUSH_USERNAME }}
password: ${{ secrets.PUSH_PASSWORD }}
- name: Push artifacts to registry
run: make push-dev