Files
godot-builder-image/.gitea/workflows/publish-image.yaml
Workflow config file is invalid. Please check your config file: yaml: line 24: did not find expected key
2025-12-01 20:57:40 +01:00

37 lines
1.3 KiB
YAML

name: Publish Builder Image
on:
push:
# Only run when the Dockerfile changes
paths:
- 'Dockerfile'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build and Push
uses: docker://quay.io/buildah/stable
env:
USERNAME: ${{ gitea.actor }}
PASSWORD: ${{ secrets.USER_PACKAGE_PASSWORD }}
REGISTRY: gitea.212.63.210.91.nip.io
# Changed to repository_owner to avoid 'owner/repo/image' nesting
IMAGE: ${{ gitea.repository_owner }}/godot-builder
TAG: ${{ gitea.sha }}
with:
entrypoint: /bin/sh
args: -c "
buildah login -u $USERNAME -p $PASSWORD --tls-verify=false --storage-driver=vfs $REGISTRY &&
# Build the image (assuming file is named 'Dockerfile' in root)
buildah build --tls-verify=false --storage-driver=vfs -t $REGISTRY/$IMAGE:$TAG -t $REGISTRY/$IMAGE:latest . &&
# Push the specific SHA tag
buildah push --tls-verify=false --storage-driver=vfs $REGISTRY/$IMAGE:$TAG &&
# Push the 'latest' tag
buildah push --tls-verify=false --storage-driver=vfs $REGISTRY/$IMAGE:latest
"