infra: migrate deployment to Coolify with Garage S3
- Remove docker-compose files (Coolify manages services individually) - Replace MinIO with Garage (S3-compatible, actively maintained) - Add CI deploy job: build+push :develop image on every green Develop push - Add Coolify webhook trigger for automatic redeployment - Update README, .env.example, and storage references - Rename migrate script to provider-agnostic name Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -29,6 +29,31 @@ jobs:
|
||||
- name: Build
|
||||
run: bun run build
|
||||
|
||||
deploy:
|
||||
needs: ci
|
||||
if: gitea.ref == 'refs/heads/Develop' && gitea.event_name == 'push'
|
||||
runs-on: dind
|
||||
steps:
|
||||
- name: Clone repository
|
||||
run: |
|
||||
apk add --no-cache git curl docker-cli
|
||||
git clone https://${{ secrets.GITEA_TOKEN }}@gitea.jeanlucmakiola.de/${{ gitea.repository }}.git repo
|
||||
cd repo
|
||||
git checkout Develop
|
||||
|
||||
- name: Build and push Docker image
|
||||
working-directory: repo
|
||||
run: |
|
||||
REGISTRY="gitea.jeanlucmakiola.de"
|
||||
IMAGE="${REGISTRY}/${{ gitea.repository_owner }}/gearbox"
|
||||
docker build -t "${IMAGE}:develop" .
|
||||
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login "$REGISTRY" -u "${{ gitea.repository_owner }}" --password-stdin
|
||||
docker push "${IMAGE}:develop"
|
||||
|
||||
- name: Trigger Coolify deploy
|
||||
run: |
|
||||
curl -s -X GET "${{ secrets.COOLIFY_WEBHOOK }}"
|
||||
|
||||
e2e:
|
||||
if: false # E2E tests need rewrite: auth moved from local login to OIDC (Logto). Tests still expect username/password flow.
|
||||
needs: ci
|
||||
|
||||
Reference in New Issue
Block a user