bignellrp/Portainer API Action

Deploy and manage Docker containers and stacks via Portainer API

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Feb 15, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: bignellrp/portainer-api-action@bd85914af4924458f269f5799c204e2073f78c1d # no releases — HEAD as of 2026-07-11

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
portainer_urlPortainer instance URL (e.g., https://portainer.example.com)yes
portainer_api_keyPortainer API access tokenyes
stack_nameName of the stack to deploy/updateyes${GITHUB_REPOSITORY#*/}
stack_filePath to docker-compose stack filenodocker-compose.yml
endpoint_idPortainer endpoint IDno2
stack_typePortainer stack type (2 = Compose, 1 = Swarm)no2
actionAction to perform: deploy, update, or redeploynoredeploy
env_varsEnvironment variables as JSON string (e.g., {"KEY": "value"})no{}
prunePrune services not defined in the stack filenotrue
x_registry_authOptional X-Registry-Auth header value (base64). Useful for private registries.no""
registry_matchOptional regex to auto-select a Portainer registry (matches Name or URL). Sets X-Registry-Auth if found.no""
namedescription
stack_idID of the deployed/updated stack
statusStatus of the operation