headscale/.github/workflows/release.yml

39 lines
947 B
YAML
Raw Permalink Normal View History

2021-08-20 17:15:20 +00:00
---
name: Release
2021-06-13 11:13:17 +00:00
on:
push:
tags:
2021-10-21 19:18:50 +00:00
- "*" # triggers only if push new tag version
2021-08-20 17:37:15 +00:00
workflow_dispatch:
2021-06-13 11:13:17 +00:00
jobs:
goreleaser:
runs-on: ubuntu-latest
2021-06-13 11:13:17 +00:00
steps:
2021-10-21 19:18:50 +00:00
- name: Checkout
2024-03-13 12:43:06 +00:00
uses: actions/checkout@v4
2021-06-13 11:13:17 +00:00
with:
fetch-depth: 0
2021-10-21 17:56:36 +00:00
- name: Login to DockerHub
2024-03-13 12:43:06 +00:00
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GHCR
2024-03-13 12:43:06 +00:00
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Run goreleaser
run: nix develop --command -- goreleaser release --clean
2021-06-13 11:13:17 +00:00
env:
2021-08-20 17:15:20 +00:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}