Skip to content

chore(deps): update golang docker tag to v1.21 #15

chore(deps): update golang docker tag to v1.21

chore(deps): update golang docker tag to v1.21 #15

Workflow file for this run

on:
push:
tags:
- '*'
name: Release
permissions:
contents: write
packages: write
issues: write
jobs:
goreleaser:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version: '>=1.20.2'
cache: true
- name: Install dependencies
run: sudo apt install -y qemu-user-static binfmt-support
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log in to ghcr.io
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: goreleaser/goreleaser-action@v4
if: startsWith(github.ref, 'refs/tags/')
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}