Skip to content

Nightly Release

Nightly Release #43

Workflow file for this run

---
name: "Nightly Release"
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch: # This allows manual triggering
permissions:
contents: write
packages: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ~1.21.3
- name: Log in to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GH_TOKEN }}
- name: Login to dockerhub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name : Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser-pro
version: latest
args: release -f nightly.goreleaser.yml --clean --nightly
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}