CI / test (push) Successful in 3m26s
The "Show image" step's run line was a plain YAML scalar containing ": ", which Gitea's parser rejects, so v0.8.1's release never ran. It's a block scalar now, and CI parses every workflow file so a broken release.yml fails on master before anything is tagged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
1014 B
YAML
34 lines
1014 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags: ['v*']
|
|
|
|
jobs:
|
|
image:
|
|
runs-on: rocky-10
|
|
outputs:
|
|
version: ${{ steps.image.outputs.version }}
|
|
digest: ${{ steps.image.outputs.digest }}
|
|
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"
|