39c4d0933e
Build and Push Docker Image / build (push) Successful in 3m1s
The host runner's Docker CLI forces the buildx path when DOCKER_BUILDKIT=1 is set, but buildx isn't installed on the runner, so the build errored before starting. Revert the env var and remove the two RUN --mount=type=cache directives so the legacy builder can parse the Dockerfile. Normal layer caching still applies; only the npm download cache reuse is lost. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
29 lines
787 B
YAML
29 lines
787 B
YAML
name: Build and Push Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
# Runs on the forgerunner host: bundled Docker CLI + mounted /var/run/docker.sock.
|
|
runs-on: host
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Log in to Gitea Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: registry.alwisp.com
|
|
username: ${{ secrets.REGISTRY_USER }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
|
|
- name: Build and Push
|
|
run: |
|
|
# gitea.repository is already "owner/repo" (e.g. jason/breedr).
|
|
IMAGE="registry.alwisp.com/${{ gitea.repository }}"
|
|
docker build -t "${IMAGE}:latest" .
|
|
docker push "${IMAGE}:latest"
|