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 849ca37c2d post-receive from gitea 3 weeks ago
.drone.yml change drone secret name 1 month ago
.gitignore initial commit 1 month ago
Dockerfile Create stacks. Documentation. Update Python libraries. 1 month ago
README.md post-receive from gitea 3 weeks ago
plugin.py add print of response from auth 1 month ago
requirements.txt Create stacks. Documentation. Update Python libraries. 1 month ago

README.md

drone-portainer

Deploy and update Docker Swarm stacks via Portainer API

Build

docker build -t drone-portainer .

Usage

kind: pipeline
name: default

steps:
- name: deploy
  image: drone-portainer
  settings:
    url: https://portainer.example.org
    stack: example
    username:
      from_secret: portainer_username
    password:
      from_secret: portainer_password
    environment:
      VAR1: value
      VAR2: value

Parameter Reference

url URL of Portainer server

stack Name of stack to create or update

username Portainer username

password Portainer password

endpoint Endpoint name. Defaults to primary

stackfile Stackfile path. Defaults to docker-stack.yml

environment Environment variables