Skip to content

Update to go-1.21, use slog instead of zap (#37) #17

Update to go-1.21, use slog instead of zap (#37)

Update to go-1.21, use slog instead of zap (#37) #17

Workflow file for this run

name: Build latest image
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Docker Login
uses: docker/login-action@v1
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
args: -p bugs -p unused
- name: Docker Image
run: |
docker build -f Dockerfile -t ghcr.io/metal-stack/metal-console .
docker push ghcr.io/metal-stack/metal-console
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}