-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 1 KB
/
master.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
name: Docker Image from master
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install libsystemd headers
run: sudo apt-get update && sudo apt-get install libsystemd-dev
- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: "1.22"
cache: false
id: go
- name: Lint
uses: golangci/golangci-lint-action@v4
with:
args: -p bugs -p unused -D protogetter --timeout=3m
- name: Docker Login
uses: docker/login-action@v3
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
- name: Build the Docker images
run: |
export GITHUB_TAG_NAME=${GITHUB_HEAD_REF##*/}
make dockerimage
make dockerpush
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}