Skip to content

chore: add deploy webhook #2

chore: add deploy webhook

chore: add deploy webhook #2

Workflow file for this run

name: Release
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: |
echo "${{ secrets.DOCKER_REGISTRY_PASSWORD }}" | docker login ${{ secrets.DOCKER_REGISTRY }} -u ${{ secrets.DOCKER_REGISTRY_USER }} --password-stdin
docker build -t ${{ secrets.DOCKER_REGISTRY_IMAGE_NAME }} .
docker push ${{ secrets.DOCKER_REGISTRY_IMAGE_NAME }}
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: build
if: success()
steps:
- name: Trigger Deploy Webhook
run: |
curl -X GET ${{ secrets.DEPLOY_WEBHOOK }}