Skip to content

Create Github action to automatically build a docker image and publish it in github package registry #165

Create Github action to automatically build a docker image and publish it in github package registry

Create Github action to automatically build a docker image and publish it in github package registry #165

Workflow file for this run

name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: './go.mod'
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...