Skip to content

ci: updates to action versions #20

ci: updates to action versions

ci: updates to action versions #20

Workflow file for this run

name: Main CI flow
on:
# publish on releases, e.g. v2.1.13 (image tagged as "2.1.13" - "v" prefix is removed)
release:
types: [published]
# publish on pushes to the main branch (image tagged as "latest")
push:
branches:
- master
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.1"
- uses: asdf-vm/actions/install@v3
# run linter and tests
- run: golangci-lint run
- run: go test -v ./...
- run: go vet ./...
- run: hadolint Dockerfile
docker_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build and publish a Docker image for ${{ github.repository }}
uses: macbre/push-to-ghcr@master
with:
image_name: ${{ github.repository }}
github_token: ${{ secrets.GITHUB_TOKEN }}