Author SHA1 Message Date
jmugandjmug 36af437794 ci: Build secrets server on PRs, publish on releases. (#1)
build-secretsserver / build (push) Successful in 45s
Co-authored-by: jmug <u.g.a.mariano@gmail.com>
Reviewed-on: #1
2026-10-25 03:10:37 -07:00
+6 -5
View File
@@ -3,9 +3,10 @@ name: build-secretsserver
on:
push:
branches:
- main
# Only run on release tags.
tags: ["v*"]
- "main"
# Only run on release tags.
tags:
- "v*"
pull_request:
jobs:
@@ -17,11 +18,11 @@ jobs:
# Unfortunately gotta use a PAT,
# workflow tokens can't access the registry yet.
- name: Log in to the registry
if: gitea.event_name != 'pull_request'
if: ${{ gitea.ref_type == 'tag' }}
uses: docker/login-action@v3
with:
registry: git.handmadecities.com
username: ${{ vars.REGISTRY_USER }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Compute tags