Skip to content

Update to go-1.22 (#34) #23

Update to go-1.22 (#34)

Update to go-1.22 (#34) #23

Workflow file for this run

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 }}