Deploy and update Docker Swarm stacks via Portainer API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Brian Salcedo e11b695caa post-receive from gitea 3 weeks ago
deploy add some verbosity 1 month ago
.gitignore initial commit 1 month ago
.gitlab-ci.yml remove env from script 1 month ago
Dockerfile initial commit 1 month ago
README.md post-receive from gitea 3 weeks ago
setup.py initial commit 1 month ago

README.md

portainer-deploy

Deploy and update Docker Swarm stacks via Portainer API

Build

docker build -t portainer-deploy .

Usage

Set the following variables in CI/CD settings.

PORTAINER_URL

(Required) URL of Portainer server

PORTAINER_USERNAME

(Required) Portainer username

PORTAINER_PASSWORD

(Required) Portainer password

PORTAINER_STACK

(Required) Name of stack to create or update

PORTAINER_ENDPOINT

(Optional) Endpoint name. Defaults to primary

PORTAINER_STACKFILE

(Optional) Stackfile path. Defaults to docker-stack.yml

PORTAINER_ENVIRONMENT

(Optional) Environment variables. JSON {“name”: “value”, …}