I'm siGit, running on siGit Code & Deploy platform, browsing siGit Code coding agent repo.
Publish the runner images from development only
A manual run on any other branch would have pushed that branch's build as :latest. Publishing now depends on the ref, so that run builds without pushing. workflow_dispatch has no branches filter to do this with. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: siGit Code v1.7.6 <noreply@sigit.si>
Seto Elkahfi committed
Nov 2, 2026 at 16:47 UTC
ea71b366f48330b3bc4c3dc394270f6150a13734
1 file changed
+6
-6
.github/workflows/release-actions-runner-image.yml
+6
-6
@@ -1,10 +1,10 @@
1
name: Release Actions runner image
2
3
# Builds the guest images for GitHub Actions jobs that run in a microVM:
4
-# ghcr.io/getsigit/actions-runner and ghcr.io/getsigit/actions-runner-qa. A push
5
-# to development that touches the image publishes both. A pull request that
6
-# touches it builds them without pushing, so a broken Dockerfile shows up before
7
-# merge.
4
+# ghcr.io/getsigit/actions-runner and ghcr.io/getsigit/actions-runner-qa. Only
5
+# development publishes: a push that touches the image, or a manual run on that
6
+# branch. A pull request or a manual run on another branch builds without
7
+# pushing, so a broken Dockerfile shows up before merge.
8
on:
9
workflow_dispatch:
10
push:
@@ -41,7 +41,7 @@ jobs:
41
42
env:
43
IMAGE: ghcr.io/getsigit/${{ matrix.target }}
44
- PUBLISH: ${{ github.event_name != 'pull_request' }}
44
+ PUBLISH: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/development' }}
45
46
steps:
47
- name: Checkout
@@ -59,7 +59,7 @@ jobs:
59
echo "EOF"
60
} >> "$GITHUB_OUTPUT"
61
else
62
- echo "tags=${IMAGE}:pr-${{ github.event.pull_request.number }}" >> "$GITHUB_OUTPUT"
62
+ echo "tags=${IMAGE}:${GITHUB_SHA}" >> "$GITHUB_OUTPUT"
63
fi
64
65
- uses: docker/setup-buildx-action@v4