Skip to content

Commit 7ea1f3c

Browse files
authored
Remove Portainer deploy step (webhook GitOps handles it) (#77)
1 parent baf1605 commit 7ea1f3c

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

.github/workflows/deploy-production.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,7 @@ jobs:
7575
# Cleanup
7676
cd /tmp && rm -rf watchtower-deploy
7777
78-
- name: Trigger Portainer deployment
79-
run: |
80-
curl -sf -X PUT \
81-
"${{ secrets.PORTAINER_URL }}/api/stacks/${{ secrets.PORTAINER_STACK_ID }}/git/redeploy?endpointId=${{ secrets.PORTAINER_ENDPOINT_ID }}" \
82-
-H "X-API-Key: ${{ secrets.PORTAINER_API_KEY }}" \
83-
-H "Content-Type: application/json" \
84-
-d '{
85-
"PullImage": true,
86-
"RepositoryAuthentication": true,
87-
"RepositoryUsername": "${{ secrets.GITEA_USERNAME }}",
88-
"RepositoryPassword": "${{ secrets.GITEA_TOKEN }}"
89-
}'
90-
91-
- name: Wait for deployment
78+
- name: Wait for webhook deployment
9279
run: sleep 30
9380

9481
- name: Health check

0 commit comments

Comments
 (0)