Преглед изворни кода

add deploy step to pipeline

Daniel Bohry пре 1 недеља
родитељ
комит
7711311f90
1 измењених фајлова са 9 додато и 1 уклоњено
  1. 9 1
      .github/workflows/buildAndRelease.yml

+ 9 - 1
.github/workflows/buildAndRelease.yml

@@ -65,4 +65,12 @@ jobs:
       - name: Build and Push Image
         run: |
           docker buildx create --use
-          docker buildx build --platform linux/amd64,linux/arm64 -t lhamacorp/knotes-be:latest --push .
+          docker buildx build --platform linux/amd64,linux/arm64 -t lhamacorp/knotes-be:latest --push .
+
+  deploy:
+    name: Deploy
+    needs: dockerize
+    runs-on: ubuntu-latest
+    steps:
+      - name: Trigger Portainer Webhook
+        run: curl --location --request POST '${{ secrets.DEPLOY_WEBHOOK }}'