Files
josh d00eb4c12b
Build and push image / build (push) Successful in 1m1s
ci: drop GHA cache backend
act_runner advertises a GHA cache endpoint that isn't reachable from
inside the build container, causing the workflow to fail after a
successful image push. The build itself was fine; only the cache export
timed out. Remove cache-from/cache-to until a real cache backend is
configured.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 20:36:29 -04:00

39 lines
960 B
YAML

name: Build and push image
on:
push:
branches: [main]
tags: ['v*']
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: gitea.thewrightserver.net
username: ${{ gitea.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- id: meta
uses: docker/metadata-action@v5
with:
images: gitea.thewrightserver.net/josh/apothecary
tags: |
type=ref,event=branch
type=sha,prefix=,format=short
type=semver,pattern={{version}}
type=raw,value=latest,enable={{is_default_branch}}
- uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}