File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5555 -t drumsergio/lynxprompt:dev-latest \
5656 --push .
5757
58- - name : Trigger Portainer deployment
58+ - name : Update geiserback docker-compose
5959 run : |
60- # Update geiserback docker-compose and redeploy via Portainer
6160 cd /tmp
6261 rm -rf geiserback-deploy
6362 GIT_CRED_HELPER='!f() { echo "username=${{ secrets.GITEA_USERNAME }}"; echo "password=${{ secrets.GITEA_TOKEN }}"; }; f'
@@ -68,26 +67,14 @@ jobs:
6867 # Update image tag
6968 sed -i 's|image: drumsergio/lynxprompt:.*|image: drumsergio/lynxprompt:${{ steps.version.outputs.version }}|' lynxprompt-dev/docker-compose.yml
7069
71- # Commit and push
70+ # Commit and push (triggers webhook auto-deploy)
7271 git config user.email "github-actions@lynxprompt.com"
7372 git config user.name "GitHub Actions"
7473 git add -A
7574 git commit -m "deploy: update lynxprompt-dev to ${{ steps.version.outputs.version }}" || echo "No changes"
7675 git push origin main
77-
76+
7877 cd /tmp && rm -rf geiserback-deploy
79-
80- # Trigger Portainer redeploy
81- curl -sf -X PUT \
82- "${{ secrets.PORTAINER_URL_DEV }}/api/stacks/${{ secrets.PORTAINER_STACK_ID_DEV }}/git/redeploy?endpointId=${{ secrets.PORTAINER_ENDPOINT_ID_DEV }}" \
83- -H "X-API-Key: ${{ secrets.PORTAINER_API_KEY_DEV }}" \
84- -H "Content-Type: application/json" \
85- -d '{
86- "PullImage": true,
87- "RepositoryAuthentication": true,
88- "RepositoryUsername": "${{ secrets.GITEA_USERNAME }}",
89- "RepositoryPassword": "${{ secrets.GITEA_TOKEN }}"
90- }'
9178
9279 - name : Health check
9380 run : |
You can’t perform that action at this time.
0 commit comments