Skip to content

update GHA for main branch #36

update GHA for main branch

update GHA for main branch #36

Workflow file for this run

name: Build
on:
push:
branches:
- main
permissions:
contents: read
jobs:
main:
strategy:
matrix:
go-version: [1.19.x]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
install-only: true
- name: Install ko
uses: ko-build/setup-ko@v0
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Run Mage
uses: magefile/mage-action@v2
with:
version: latest
args: pushimages