From 6112911e1b86797962b48e2c88073dc5ad578c88 Mon Sep 17 00:00:00 2001 From: Olof Pettersson Date: Mon, 1 Dec 2025 20:57:40 +0100 Subject: [PATCH] Change naming --- .gitea/workflows/publish-image.yaml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/publish-image.yaml b/.gitea/workflows/publish-image.yaml index 8b76c08..bde7fd5 100644 --- a/.gitea/workflows/publish-image.yaml +++ b/.gitea/workflows/publish-image.yaml @@ -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 " \ No newline at end of file