Fix: Switch to Local Build strategy (bypass registry upload)
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 8s

This commit is contained in:
2026-02-01 21:55:52 +01:00
parent 5bf5701e0d
commit e4d4df16ad
6 changed files with 197 additions and 190 deletions

View File

@@ -1,27 +1,34 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to Gitea Container Registry
uses: docker/login-action@v2
with:
registry: gitea.lemarechal.eu
username: ${{ gitea.actor }}
password: ${{ secrets.PACKAGES_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: gitea.lemarechal.eu/aydent/clawdbot:latest
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to Gitea Container Registry
uses: docker/login-action@v2
with:
registry: gitea.lemarechal.eu
username: ${{ gitea.actor }}
password: ${{ secrets.PACKAGES_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: false
load: true
tags: gitea.lemarechal.eu/aydent/clawdbot:latest
- name: Restart Service
run: |
# The image is now in the local docker daemon (Host) thanks to the shared socket
docker compose up -d --force-recreate clawdbot
docker image prune -f