Some checks failed
Publish Builder Image / build-and-push (push) Failing after 2m49s
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
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!
|
|
|
|
- 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 |