From 0206e858739e0e5116b0633efb757b5f6b91e6d0 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Fri, 30 Jan 2026 00:34:43 +0100 Subject: [PATCH] chore: move deploy workflow to correct location --- .github/workflows/deploy-pulse-frontend.yml | 49 +++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/deploy-pulse-frontend.yml diff --git a/.github/workflows/deploy-pulse-frontend.yml b/.github/workflows/deploy-pulse-frontend.yml new file mode 100644 index 0000000..91bba07 --- /dev/null +++ b/.github/workflows/deploy-pulse-frontend.yml @@ -0,0 +1,49 @@ +name: Build & Push Pulse Frontend + +on: + push: + branches: [ "main" ] + +env: + IMAGE_NAME: registry.ops.ciphera.net/pulse-frontend + +jobs: + build-and-push: + runs-on: ubuntu-latest + permissions: + contents: read + packages: read + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Private Registry + uses: docker/login-action@v3 + with: + registry: ${{ secrets.REGISTRY_URL }} + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASSWORD }} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + push: true + tags: ${{ env.IMAGE_NAME }}:latest + build-args: | + NODE_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }} + cache-from: type=gha + cache-to: type=gha,mode=max + + deploy: + needs: build-and-push + runs-on: ubuntu-latest + steps: + - name: Deploy to Coolify + run: | + curl -X GET "${{ secrets.COOLIFY_WEBHOOK_PULSE_FRONTEND }}"