diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3631d6d..48098f8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 }}