Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/allanpk716/drone-portainer

drone plugin for portainer
https://github.com/allanpk716/drone-portainer

Last synced: 22 days ago
JSON representation

drone plugin for portainer

Awesome Lists containing this project

README

        

# drone-portainer

Deploy and update Docker Swarm stacks via Portainer API

fork from https://salcedo.dev/salcedo/drone-portainer

# Build

`docker build -t drone-portainer .`

# Usage

```yaml
kind: pipeline
name: default

steps:
- name: deploy
image: drone-portainer
settings:
url: https://portainer.example.org
stack: example
tag: ${DRONE_TAG}
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

`tag`
Drone build tag