File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 -t drumsergio/lynxprompt:dev-latest \
4545 --push .
4646
47- - name : Trigger Portainer deployment
47+ - name : Update geiserback docker-compose
4848 run : |
49- # Update geiserback docker-compose and redeploy via Portainer
5049 cd /tmp
5150 rm -rf geiserback-deploy
5251 GIT_CRED_HELPER='!f() { echo "username=${{ secrets.GITEA_USERNAME }}"; echo "password=${{ secrets.GITEA_TOKEN }}"; }; f'
@@ -57,26 +56,14 @@ jobs:
5756 # Update image tag
5857 sed -i 's|image: drumsergio/lynxprompt:.*|image: drumsergio/lynxprompt:${{ steps.version.outputs.version }}|' lynxprompt-dev/docker-compose.yml
5958
60- # Commit and push
59+ # Commit and push (triggers webhook auto-deploy)
6160 git config user.email "github-actions@lynxprompt.com"
6261 git config user.name "GitHub Actions"
6362 git add -A
6463 git commit -m "deploy: update lynxprompt-dev to ${{ steps.version.outputs.version }}" || echo "No changes"
6564 git push origin main
66-
65+
6766 cd /tmp && rm -rf geiserback-deploy
68-
69- # Trigger Portainer redeploy
70- curl -X PUT \
71- "${{ secrets.PORTAINER_URL_DEV }}/api/stacks/${{ secrets.PORTAINER_STACK_ID_DEV }}/git/redeploy?endpointId=${{ secrets.PORTAINER_ENDPOINT_ID_DEV }}" \
72- -H "X-API-Key: ${{ secrets.PORTAINER_API_KEY_DEV }}" \
73- -H "Content-Type: application/json" \
74- -d '{
75- "PullImage": true,
76- "RepositoryAuthentication": true,
77- "RepositoryUsername": "${{ secrets.GITEA_USERNAME }}",
78- "RepositoryPassword": "${{ secrets.GITEA_TOKEN }}"
79- }'
8067
8168 - name : Health check
8269 run : |
Original file line number Diff line number Diff line change 7070 # Cleanup
7171 cd /tmp && rm -rf watchtower-deploy
7272
73- - name : Trigger Portainer deployment
74- run : |
75- curl -X PUT \
76- "${{ secrets.PORTAINER_URL }}/api/stacks/${{ secrets.PORTAINER_STACK_ID }}/git/redeploy?endpointId=${{ secrets.PORTAINER_ENDPOINT_ID }}" \
77- -H "X-API-Key: ${{ secrets.PORTAINER_API_KEY }}" \
78- -H "Content-Type: application/json" \
79- -d '{
80- "PullImage": true,
81- "RepositoryAuthentication": true,
82- "RepositoryUsername": "${{ secrets.GITEA_USERNAME }}",
83- "RepositoryPassword": "${{ secrets.GITEA_TOKEN }}"
84- }'
85-
8673 - name : Wait for deployment
8774 run : sleep 30
8875
You can’t perform that action at this time.
0 commit comments