Skip to content

Merge pull request #7 from lorislab/dependabot/go_modules/github.com/… #14

Merge pull request #7 from lorislab/dependabot/go_modules/github.com/…

Merge pull request #7 from lorislab/dependabot/go_modules/github.com/… #14

Workflow file for this run

name: Latest build
on:
push:
branches:
- 'main'
tags-ignore:
- '**'
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v4
with:
go-version: 1.20.x
- uses: golangci/golangci-lint-action@v3
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and test
run: |
go build .
go test
go clean
- uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --clean --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Docker push
run: docker push ghcr.io/${GITHUB_REPOSITORY}:latest