Fix Dockerfile name and use dumb docker build commands

This commit is contained in:
2025-11-30 22:10:34 +01:00
parent a985404fb7
commit 89b86deaec
2 changed files with 8 additions and 20 deletions

View File

@ -1,36 +1,24 @@
name: Publish Builder Image
on: [push]
jobs:
build-and-push:
runs-on: ubuntu-latest
env:
DOCKER_HOST: tcp://localhost:2375
# If localhost fails, try: tcp://docker:2375 (depending on service alias)
steps:
- name: Checkout
uses: actions/checkout@v3
# This handles the connection to the daemon properly
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver: docker
- name: Login to Gitea Registry
# We use the internal URL for speed, but external DNS for the registry name
uses: docker/login-action@v2
with:
registry: gitea.212.63.210.91.nip.io
username: ${{ gitea.actor }}
password: ${{ secrets.GITHUB_TOKEN }} # Gitea auto-injects this!
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v4
with:
context: .
push: true
# Tag it as 'latest' in your user's package registry
tags: gitea.212.63.210.91.nip.io/${{ gitea.repository_owner }}/godot-builder:latest
- name: Build and Push (Native Docker)
run: |
# Build the image using the standard docker command
docker build . --tag gitea.212.63.210.91.nip.io/${{ gitea.repository_owner }}/godot-builder:latest
# Push it
docker push gitea.212.63.210.91.nip.io/${{ gitea.repository_owner }}/godot-builder:latest