Update docker-build.yml: run on forgerunner host label, fix doubled image path
Build and Push Docker Image / build (push) Failing after 6s

This commit is contained in:
2026-06-29 22:58:06 -05:00
parent 04ae88ca0d
commit 9b56bf1683
+11 -5
View File
@@ -1,13 +1,16 @@
name: Build and Push Docker Image
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
# Run directly on the forgerunner host: the bundled Docker CLI and the
# mounted /var/run/docker.sock are available, so no nested-container or
# socket juggling is needed.
runs-on: host
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -21,5 +24,8 @@ jobs:
- name: Build and Push
run: |
docker build -t registry.alwisp.com/${{ gitea.repository_owner }}/${{ gitea.repository }}:latest .
docker push registry.alwisp.com/${{ gitea.repository_owner }}/${{ gitea.repository }}:latest
# gitea.repository is already "owner/repo" (e.g. jason/breedr).
IMAGE="registry.alwisp.com/${{ gitea.repository }}"
docker build -t "${IMAGE}:latest" -t "${IMAGE}:${{ gitea.sha }}" .
docker push "${IMAGE}:latest"
docker push "${IMAGE}:${{ gitea.sha }}"