Fixed a bug and added redeploy step.
This commit is contained in:
@ -20,4 +20,10 @@ jobs:
|
||||
run: |
|
||||
IMAGE=gitea.masita.net/mc/messengerapi:latest
|
||||
docker build -t $IMAGE .
|
||||
docker push $IMAGE
|
||||
docker push $IMAGE
|
||||
|
||||
- name: Redeploy Portainer Stack
|
||||
run: |
|
||||
curl -X POST "${{ secrets.PORTAINER_URL }}/api/stacks/${{ secrets. PORTAINER_STACK_ID_MESSENGER_API_DEVELOP }}/redeploy" \
|
||||
-H "Authorization: Bearer ${{ secrets.PORTAINER_TOKEN }}" \
|
||||
-H "Content-Type: application/json"
|
||||
Reference in New Issue
Block a user