Fix Dockerfile name and use dumb docker build commands
This commit is contained in:
@ -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
|
||||
Reference in New Issue
Block a user