소스 검색

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 }}'