Files
tern-server/.gitea/workflows/release.yml
T
Mateusz PstruchaandClaude Opus 5.5 30a8d52500
CI / test (pull_request) Successful in 4m13s
Release builds the image only, ygg/deployments deploys it
Production now runs from ygg/deployments, so a deploy from here would write
over it. Renovate opens a PR there for the new version, and merging it deploys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 16:37:24 +01:00

33 lines
1.0 KiB
YAML

name: Release
# Builds and pushes the image. Production runs from ygg/deployments: Renovate
# opens a PR there for the new version, and merging it deploys.
on:
push:
tags: ['v*']
jobs:
image:
runs-on: rocky-10
steps:
- name: Check out source
uses: actions/checkout@v4
# The shared ygg action builds ./Dockerfile as
# git.app.ygg/mtps/tern-server, tagged with the version (v stripped)
# and latest, with OCI source/revision/created/version labels. It logs
# in through a temporary DOCKER_CONFIG, so the token never lands in the
# runner's ~/.docker, and builds with --progress=plain.
- name: Build and push image
id: image
uses: https://git.app.ygg/ygg/actions/push-image@v2
with:
registry-token: ${{ secrets.REGISTRY_TOKEN }}
- name: Show image
env:
TAGS: ${{ steps.image.outputs.tags }}
DIGEST: ${{ steps.image.outputs.digest }}
run: |
printf 'tags: %s\ndigest: %s\n' "$TAGS" "$DIGEST"