From dbdb0c296fb8d6cea840b4fcc4da81c2968e5dbd Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Tue, 26 Aug 2025 09:11:21 +0300 Subject: [PATCH] Build image directly on Coolify --- .github/workflows/test_and_deploy.yml | 30 ++------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 974c48e3..edb96c95 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -74,39 +74,13 @@ jobs: CLOAK_ENCRYPTION_KEY: f5ol1dJROsm9yi/tvtHiblN8aLH1FUN/obEvUcASx3U= deploy: + name: Deploy needs: test runs-on: ubuntu-latest environment: production if: github.ref == 'refs/heads/main' concurrency: deploy-group steps: - - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ vars.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Build - uses: docker/build-push-action@v6 - with: - platforms: linux/amd64 - tags: | - fullyforged/music_library:latest - fullyforged/music_library:${{ github.sha }} - push: true - cache-from: type=registry,ref=fullyforged/music_library:latest - cache-to: type=inline - secrets: | - "FLUXON_LICENSE_KEY=${{ secrets.FLUXON_LICENSE_KEY }}" - "FLUXON_KEY_FINGERPRINT=${{ secrets.FLUXON_KEY_FINGERPRINT }}" - - - name: Deploy to Coolify + - name: Notify Coolify run: | curl --request GET '${{ secrets.COOLIFY_WEBHOOK }}' --header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}'