Files
GCP-Dot/.gitea/workflows/docker.yml
Hexadual 4db2182a3d
Some checks failed
Build & publish Docker images / Build & push all images (push) Failing after 2s
Fix CI: replace actions/checkout with git clone (no Node.js needed)
Host-mode runner has no Node.js so JS composite actions fail.
All steps are now plain shell — git clone for checkout, docker
CLI for build/push. Zero external action dependencies.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-30 01:37:17 -05:00

51 lines
1.5 KiB
YAML

name: Build & publish Docker images
on:
push:
branches: [main]
release:
types: [published]
env:
REGISTRY: git.hexadual.io
jobs:
build:
name: Build & push all images
runs-on: ubuntu-latest
steps:
- name: Checkout
run: |
git clone --depth 1 \
https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@git.hexadual.io/${{ github.repository }}.git \
.
git checkout ${{ github.sha }}
- name: Log in to registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | \
docker login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
- name: Build & push server
run: |
docker build \
-t ${{ env.REGISTRY }}/rocobo/gcp-dot-server:latest \
-t ${{ env.REGISTRY }}/rocobo/gcp-dot-server:${{ github.sha }} \
./server
docker push ${{ env.REGISTRY }}/rocobo/gcp-dot-server:latest
docker push ${{ env.REGISTRY }}/rocobo/gcp-dot-server:${{ github.sha }}
- name: Build & push egg
run: |
docker build \
-t ${{ env.REGISTRY }}/rocobo/gcp-dot-egg:latest \
-t ${{ env.REGISTRY }}/rocobo/gcp-dot-egg:${{ github.sha }} \
./egg
docker push ${{ env.REGISTRY }}/rocobo/gcp-dot-egg:latest
docker push ${{ env.REGISTRY }}/rocobo/gcp-dot-egg:${{ github.sha }}
- name: Logout
if: always()
run: docker logout ${{ env.REGISTRY }} || true