Scope documentation CI and isolate delivery job resources

This commit is contained in:
2026-09-11 08:10:34 +00:00
parent eeabf6308e
commit 67cc71b05c
2 changed files with 55 additions and 0 deletions
+16
View File
@@ -21,7 +21,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Select relevant delivery work
id: delivery
env:
DELIVERY_EVENT: ${{ github.event_name }}
DELIVERY_REF: ${{ github.ref }}
DELIVERY_SHA: ${{ github.sha }}
DELIVERY_BASE: ${{ github.event.pull_request.base.sha || github.event.before }}
run: |
cd .
bash scripts/ci-select.sh
- name: Install Go and Docker CLI if needed
if: ${{ steps.delivery.outputs.run == 'true' }}
shell: bash
run: |
set -euo pipefail
@@ -62,9 +73,11 @@ jobs:
docker version
- name: Run tests
if: ${{ steps.delivery.outputs.run == 'true' }}
run: go test ./...
- name: Log in to Gitea Container Registry
if: ${{ steps.delivery.outputs.run == 'true' }}
shell: bash
run: |
set -euo pipefail
@@ -79,6 +92,7 @@ jobs:
exit 1
- name: Determine image tags
if: ${{ steps.delivery.outputs.run == 'true' }}
id: meta
shell: bash
env:
@@ -109,6 +123,7 @@ jobs:
printf 'EOF\n' >> "$GITHUB_OUTPUT"
- name: Build image
if: ${{ steps.delivery.outputs.run == 'true' }}
shell: bash
run: |
set -euo pipefail
@@ -124,6 +139,7 @@ jobs:
docker build "${build_args[@]}" .
- name: Push image
if: ${{ steps.delivery.outputs.run == 'true' }}
shell: bash
run: |
set -euo pipefail