Skip to content

Use dockerhub for releases (#148) #3

Use dockerhub for releases (#148)

Use dockerhub for releases (#148) #3

Workflow file for this run

# .github/workflows/release.yml
name: goreleaser
on:
workflow_dispatch:
push:
tags:
- "*"
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup dependencies
uses: actions/setup-go@v2
- name: Login to Docker hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log tag name
run: echo "Build for tag ${{ github.ref_name }}"
- name: release dry run
run: make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.ref_name }}