ci: restore deploy job, remove only Coolify webhook step
Deployment trigger is now handled by Gitea webhooks. The Docker build+push step stays so the image is available in the registry. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -29,6 +29,30 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: bun run 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 docker-cli-buildx
|
||||||
|
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"
|
||||||
|
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login "$REGISTRY" -u "${{ gitea.repository_owner }}" --password-stdin
|
||||||
|
docker buildx build \
|
||||||
|
--cache-from type=registry,ref=${IMAGE}:buildcache \
|
||||||
|
--cache-to type=registry,ref=${IMAGE}:buildcache \
|
||||||
|
-t "${IMAGE}:develop" \
|
||||||
|
--push .
|
||||||
|
|
||||||
e2e:
|
e2e:
|
||||||
if: false # E2E tests need rewrite: auth moved from local login to OIDC (Logto). Tests still expect username/password flow.
|
if: false # E2E tests need rewrite: auth moved from local login to OIDC (Logto). Tests still expect username/password flow.
|
||||||
needs: ci
|
needs: ci
|
||||||
|
|||||||
Reference in New Issue
Block a user