Change naming

This commit is contained in:
2025-12-01 20:57:40 +01:00
parent 74a76070a8
commit 6112911e1b

View File

@ -1,5 +1,9 @@
name: Publish Builder Image
on: [push]
on:
push:
# Only run when the Dockerfile changes
paths:
- 'Dockerfile'
jobs:
build-and-push:
@ -9,23 +13,25 @@ jobs:
uses: actions/checkout@v3
- name: Build and Push
# Use the official stable image directly
uses: docker://quay.io/buildah/stable
env:
# Use the Token with write:package scope
USERNAME: ${{ gitea.actor }}
PASSWORD: ${{ secrets.USER_PACKAGE_PASSWORD }}
REGISTRY: gitea.212.63.210.91.nip.io
# Image name format: owner/image
IMAGE: ${{ gitea.repository }}/godot-builder
# Changed to repository_owner to avoid 'owner/repo/image' nesting
IMAGE: ${{ gitea.repository_owner }}/godot-builder
TAG: ${{ gitea.sha }}
with:
# Buildah requires a shell entrypoint to run multiple commands
entrypoint: /bin/sh
args: -c "
buildah login -u $USERNAME -p $PASSWORD --tls-verify=false $REGISTRY &&
buildah login -u $USERNAME -p $PASSWORD --tls-verify=false --storage-driver=vfs $REGISTRY &&
buildah build --tls-verify=false -t $REGISTRY/$IMAGE:$TAG . &&
# 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 . &&
buildah push --tls-verify=false $REGISTRY/$IMAGE:$TAG
# 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
"