-
Notifications
You must be signed in to change notification settings - Fork 63
52 lines (43 loc) · 940 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
45
46
47
48
49
50
51
52
name: Build
on:
push:
branches-ignore:
- renovate/**
paths:
- ".github/workflows/build.yaml"
- "go.mod"
- "go.sum"
- "Taskfile.yaml"
- "**.go"
- "**.go.json"
- "etc/Dockerfile"
pull_request:
branches:
- master
paths:
- ".github/workflows/build.yaml"
- "go.mod"
- "go.sum"
- "Taskfile.yaml"
- "**.go"
- "**.go.json"
- "etc/Dockerfile"
env:
GOTOOLCHAIN: "local"
jobs:
docker:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
with:
env: build
- name: Install Task
uses: arduino/setup-task@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
- run: go get ./...
- run: task build
name: Build Binary
- run: docker build -t tmp -f etc/Dockerfile .
- run: docker run tmp -h