Some checks failed
Release / release (push) Failing after 6s
Signed-off-by: kjuulh <contact@kjuulh.io>
32 lines
730 B
YAML
32 lines
730 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- "v*"
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Build release image
|
|
run: docker build -f Dockerfile.release -t gitnow-release .
|
|
|
|
- name: Snapshot (dry run)
|
|
if: startsWith(github.ref, 'refs/tags/') == false
|
|
run: docker run --rm gitnow-release release-snapshot
|
|
|
|
- name: Release
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
run: |
|
|
docker run --rm \
|
|
-e GITEA_TOKEN=${{ secrets.RELEASE_TOKEN }} \
|
|
-e RELEASE_TOKEN=${{ secrets.RELEASE_TOKEN }} \
|
|
gitnow-release release
|