Skip to content

Commit

Permalink
chore: add deploy webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
HADB committed Oct 23, 2024
1 parent a91c182 commit dc35f62
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
branches: [main]

jobs:
build-and-push-image:
name: Build & push docker image
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -17,3 +17,12 @@ jobs:
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 }}

0 comments on commit dc35f62

Please sign in to comment.