This action stops, updates & starts an running Portainer stack.
-
portainer-hostRequired: Portainer host URL.
-
access-tokenRequired: Token used for authentication to Portainer host.
-
endpoint-idEndpoint ID where the stack is running. If not provided, the first endpoint will be used.
-
stack-nameRequired: Name for the Portainer stack.
-
stack-envList of stack environment variables that will be added/updated.
uses: ligouras/portainer-redeploy-action@main
with:
portainer-host: https://portainer.example.com
access-token: ${{ secrets.PORTAINER_TOKEN }}
endpoint-id: 1
stack-name: my-awesome-web-app
stack-env: |
NODE_ENV=production
PORT=3000