diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index b1ffb05..b32c7ee 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -9,6 +9,7 @@ jobs: steps: - run: docker pull linuxserver/bookstack #optional? probably faster if done first... - name: Fetch stack ID from Portainer + if: contains(github.event.head_commit.message, 'redeploy') env: STACK_NAME: bookstack PORTAINER_TOKEN: ${{ secrets.PORTAINER_TOKEN }} @@ -25,6 +26,7 @@ jobs: echo "Got stack ID: $STACK_ID and Endpoint ID: $ENDPOINT_ID" - name: Fetch stack configuration + if: contains(github.event.head_commit.message, 'redeploy') env: STACK_NAME: bookstack PORTAINER_TOKEN: ${{ secrets.PORTAINER_TOKEN }} @@ -37,6 +39,7 @@ jobs: echo "Fetched stack configuration and saved it to stack.yml" - name: Redeploy stack in Portainer + if: contains(github.event.head_commit.message, 'redeploy') env: STACK_NAME: bookstack PORTAINER_TOKEN: ${{ secrets.PORTAINER_TOKEN }}