Files
fedora-runner-image/.gitea/workflows/dockerbuild.yml
Lukas Greve f1ba1e0792
Some checks failed
Build and Push Docker Image / build (push) Failing after 10s
Update .gitea/workflows/dockerbuild.yml
2025-11-12 21:25:31 +00:00

54 lines
1.6 KiB
YAML

name: Build and Push Docker Image
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Detailed Debug Info
run: |
# Check if we're in a container
echo "Running in container: ${{ contains(github.runner_os, 'Linux') }}"
# Check file permissions
echo "Docker socket permissions:"
ls -la /var/run/docker.sock
# Check if docker group exists
echo "Docker group info:"
getent group docker
# Check if we can run docker commands
echo "Testing docker commands:"
if command -v docker &> /dev/null; then
echo "Docker is installed"
docker --version
else
echo "Docker not installed"
fi
# Check user membership
echo "User membership:"
groups $USER
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: git.phyllo.me
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
git.phyllo.me/devops/fedora-runner-image:${{ github.ref_name }}-${{ github.sha }}
git.phyllo.me/devops/fedora-runner-image:${{ github.ref_name }}-latest
build-args: |
BUILD_IDENTIFIER=${{ github.sha }}