-
Notifications
You must be signed in to change notification settings - Fork 57
56 lines (45 loc) · 1.19 KB
/
main.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
name: build
on:
push:
tags:
- 'v*'
branches:
- 'v*'
paths-ignore:
- 'docs/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- platform: linux/amd64,linux/arm64,linux/arm/v7
target: agent-image
- platform: linux/amd64,linux/arm64,linux/arm/v7
target: connector-image
- platform: linux/amd64,linux/arm64,linux/arm/v7
target: operator-image
- platform: linux/amd64,linux/arm64,linux/arm/v7
target: cloud-agent-image
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Remove proxies
run: |
bash build/utils/no_proxy.sh
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
run: |
make ${target} PLATFORM=${platform} PUSH=true
env:
platform: ${{ matrix.platform }}
target: ${{ matrix.target }}