Some checks failed
Build and Push Docker Image / docker (push) Failing after 10m58s
Based on Zen multi-model consensus analysis: Root cause: act_runner v0.2.13+3 maps ubuntu-latest to bare ubuntu:22.04 which lacks Docker CLI. Newer runners use full images. Solution: Override job container to use ghcr.io/catthehacker/ubuntu:full-22.04 which includes Docker, Buildx, Node.js, and standard CI tools. This is the recommended approach from act_runner maintainers for GitHub Actions compatibility. Consensus from Gemini-2.5-pro and o3 models. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
37 lines
892 B
YAML
37 lines
892 B
YAML
name: Build and Push Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ghcr.io/catthehacker/ubuntu:full-22.04
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Log in to Gitea Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: code.puffinoffset.com
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Build and push Docker image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
platforms: linux/amd64
|
|
push: true
|
|
tags: |
|
|
code.puffinoffset.com/matt/puffin-app:latest
|
|
code.puffinoffset.com/matt/puffin-app:main-${{ github.sha }}
|