-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 934 Bytes
/
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
name: build
on:
push:
branches:
- master
jobs:
build:
strategy:
matrix:
platform: [ amd64, arm64 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ">=1.19"
- run: go version
- name: "Install dependencies"
run: go mod download
- name: "Build Lambda"
run: go build -o ./bin/main ./cmd/lambda
env:
CGO_ENABLED: "0"
GOOS: linux
GOARCH: ${{ matrix.platform }}
- name: "Build standalone"
run: go build -o ./bin/main ./cmd/standalone
env:
CGO_ENABLED: "0"
GOOS: linux
GOARCH: ${{ matrix.platform }}
push:
if: ${{ success() }}
needs: build
uses: ./.github/workflows/push.yaml
with:
image_tag: "latest"
secrets:
HUB_PASSWORD: ${{ secrets.HUB_PASSWORD }}