chore: move deploy workflow to correct location

This commit is contained in:
Usman Baig
2026-01-30 00:34:43 +01:00
parent 5e96e58d47
commit 0206e85873

View File

@@ -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 }}"