Skip to content

ci: login to ghcr.io in release workflow #65

ci: login to ghcr.io in release workflow

ci: login to ghcr.io in release workflow #65

Workflow file for this run

---
name: release
on:
push:
tags:
- 'v*.*.*'
jobs:
release:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/[email protected]
with:
# to be able to generate the full changelog:
# https://github.com/goreleaser/goreleaser-action/issues/56#issuecomment-568718162
fetch-depth: 0
- name: Setup Go
uses: actions/[email protected]
with:
go-version-file: go.mod
- name: Login to DockerHub
uses: docker/[email protected]
with:
username: utkuozdemir
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: GoReleaser
uses: goreleaser/[email protected]
with:
# renovate: depName=goreleaser/goreleaser datasource=github-releases
version: v2.6.1
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PRIVATE_ACCESS_TOKEN: ${{ secrets.PRIVATE_ACCESS_TOKEN }}
- name: Update new version in krew-index
uses: rajatjindal/[email protected]