Skip to content

Update Golang version #12

Update Golang version

Update Golang version #12

Workflow file for this run

name: build
on:
push:
branches:
- main
tags:
- v*
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: docker/setup-qemu-action@v2.2.0
with:
image: tonistiigi/binfmt:qemu-v6.2.0
platforms: arm64
- uses: docker/setup-buildx-action@v2.9.0
with:
driver-opts: image=moby/buildkit
- uses: docker/metadata-action@v4.6.0
id: meta
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=sha,format=long
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- uses: docker/login-action@v2.2.0
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- uses: docker/build-push-action@v4.1.1
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64,linux/arm64
provenance: false
cache-from: type=gha
cache-to: type=gha,mode=max