Author SHA1 Message Date
jmug 258a5e5d61 feat: Build on push to main, push on releases.
build-secretsserver / build (pull_request) Successful in 35s
2026-10-25 03:01:06 -07:00
jmug 71f4dc038e fix: Specify correct dockerfile.
build-secretsserver / build (pull_request) Successful in 49s
2026-10-25 02:42:46 -07:00
jmug ce718a19dd feat: Try build-action
build-secretsserver / build (pull_request) Failing after 28s
2026-10-25 02:39:34 -07:00
+42
View File
@@ -0,0 +1,42 @@
name: build-secretsserver
on:
push:
branches:
- main
# Only run on release tags.
tags: ["v*"]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
# 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'
uses: docker/login-action@v3
with:
registry: git.handmadecities.com
username: ${{ vars.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Compute tags
id: meta
uses: docker/metadata-action@v5
with:
images: git.handmadecities.com/${{ gitea.repository }}/secretsserver
tags: |
type=semver,pattern={{version}}
- name: Build and push
uses: docker/build-push-action@v6
with:
file: docker/secretsserver/Dockerfile
context: .
# Only push on releases.
push: ${{ gitea.ref_type == 'tag' }}
tags: ${{ steps.meta.outputs.tags }}