forked from AlexPshkov/portainer-stack-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
37 lines (35 loc) · 1.31 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: 'milkfish/portainer-stack-deploy'
description: 'GitHub Action to deploy and update stacks on Portainer v2 with support for multiple endpoints'
author: 'Carl Rygart <carlrygart>, AlexPshkov, milkfish and contributors'
branding:
icon: 'cloud'
color: 'blue'
inputs:
portainer-host:
required: true
description: 'Portainer host, eg. https://myportainer.instance.com'
token:
required: true
description: 'Token for the Portainer login'
swarm-id:
required: false
description: 'ID of the swarm. Only required if you deploy to a swarm.'
endpoint-id:
required: false
default: '1'
description: 'ID of the endpoint to deploy the stack to. When specified, only stacks within this endpoint will be considered for updates.'
stack-name:
required: true
description: 'Name for the Portainer stack'
stack-definition:
required: true
description: 'The path to the docker-compose stack stack definition file, eg. stack-definition.yml'
template-variables:
required: false
description: 'If given, these variables will be replaced in docker-compose file by handlebars'
image:
required: false
description: 'The URI of the container image to insert into the stack definition, eg. docker.pkg.github.com/username/repo/master'
runs:
using: 'node12'
main: 'dist/index.js'