Fix CI: run jobs on host, use plain docker shell steps
Some checks failed
Build & publish Docker images / Build & push all images (push) Failing after 3s

The previous workflow ran jobs inside node:20-bookworm which has no
Docker CLI. Re-mapped label to :host and replaced composite actions
with direct docker build/push shell commands.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Hexadual
2026-04-30 01:35:14 -05:00
parent 62b9995cd9
commit 7c7bf067bc

View File

@@ -10,72 +10,37 @@ env:
REGISTRY: git.hexadual.io REGISTRY: git.hexadual.io
jobs: jobs:
server: build:
name: Server image name: Build & push all images
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps: steps:
- uses: actions/checkout@v4 - name: Checkout
uses: actions/checkout@v4
- name: Log in to Gitea container registry - name: Log in to registry
uses: docker/login-action@v3 run: |
with: echo "${{ secrets.GITHUB_TOKEN }}" | \
registry: ${{ env.REGISTRY }} docker login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata - name: Build & push server
id: meta run: |
uses: docker/metadata-action@v5 docker build \
with: -t ${{ env.REGISTRY }}/rocobo/gcp-dot-server:latest \
images: ${{ env.REGISTRY }}/rocobo/gcp-dot-server -t ${{ env.REGISTRY }}/rocobo/gcp-dot-server:${{ github.sha }} \
tags: | ./server
type=raw,value=latest,enable={{is_default_branch}} docker push ${{ env.REGISTRY }}/rocobo/gcp-dot-server:latest
type=semver,pattern={{version}} docker push ${{ env.REGISTRY }}/rocobo/gcp-dot-server:${{ github.sha }}
type=sha,prefix=sha-,format=short
- name: Build and push server image - name: Build & push egg
uses: docker/build-push-action@v5 run: |
with: docker build \
context: ./server -t ${{ env.REGISTRY }}/rocobo/gcp-dot-egg:latest \
push: true -t ${{ env.REGISTRY }}/rocobo/gcp-dot-egg:${{ github.sha }} \
tags: ${{ steps.meta.outputs.tags }} ./egg
labels: ${{ steps.meta.outputs.labels }} docker push ${{ env.REGISTRY }}/rocobo/gcp-dot-egg:latest
docker push ${{ env.REGISTRY }}/rocobo/gcp-dot-egg:${{ github.sha }}
egg: - name: Logout
name: Egg image if: always()
runs-on: ubuntu-latest run: docker logout ${{ env.REGISTRY }}
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Log in to Gitea container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/rocobo/gcp-dot-egg
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=sha,prefix=sha-,format=short
- name: Build and push egg image
uses: docker/build-push-action@v5
with:
context: ./egg
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}