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:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOCKER_HOST: tcp://localhost:2375
|
DOCKER_HOST: tcp://localhost:2375
|
||||||
# If localhost fails, try: tcp://docker:2375 (depending on service alias)
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
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
|
- name: Login to Gitea Registry
|
||||||
# We use the internal URL for speed, but external DNS for the registry name
|
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: gitea.212.63.210.91.nip.io
|
registry: gitea.212.63.210.91.nip.io
|
||||||
username: ${{ gitea.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }} # Gitea auto-injects this!
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and Push
|
- name: Build and Push (Native Docker)
|
||||||
uses: docker/build-push-action@v4
|
run: |
|
||||||
with:
|
# Build the image using the standard docker command
|
||||||
context: .
|
docker build . --tag gitea.212.63.210.91.nip.io/${{ gitea.repository_owner }}/godot-builder:latest
|
||||||
push: true
|
|
||||||
# Tag it as 'latest' in your user's package registry
|
# Push it
|
||||||
tags: gitea.212.63.210.91.nip.io/${{ gitea.repository_owner }}/godot-builder:latest
|
docker push gitea.212.63.210.91.nip.io/${{ gitea.repository_owner }}/godot-builder:latest
|
||||||
Reference in New Issue
Block a user