Skip to content

hosted-domains/portainer-deploy-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Release GitHub Release Version GitHub Last Commit GitHub Org Stars Discord

Portainer Deploy Action

Deploy a Stack to Portainer with the desired service-configs environment variables.

Inputs

input required default description
version Yes - Version Tag to Deploy
stack-name Yes - Stack Name
stack-file - docker-compose-swarm.yaml Compose File
config-file Yes - Config File
config-ssh-key Yes - SSH Key for service-configs
portainer-url Yes - Portainer URL
portainer-token Yes - Portainer Token
registry - - Registry Hostname

Examples

For Django5 Boiler (with hard coded values for example):

- name: 'Portainer Deploy Action'
  uses: hosted-domains/portainer-deploy-action@master
  with:
    version: dev
    stack-name: dev_cssnr-django5-boiler
    config-file: services/shane/django5-boiler/dev.env
    config-ssh-key: ${{ secrets.SERVICE_CONFIGS_KEY }}
    portainer-url: ${{ secrets.PORTAINER_URL }}
    portainer-token: ${{ secrets.PORTAINER_TOKEN }}

But in reality it looks like this:

- name: 'Portainer Deploy Action'
  if: ${{ env.deploy == 'true' }}
  uses: hosted-domains/portainer-deploy-action@master
  with:
    version: ${{ env.env-name }}
    stack-name: ${{ env.stack-name }}
    config-file: services/shane/django5-boiler/${{ env.env-name }}.env
    config-ssh-key: ${{ secrets.SERVICE_CONFIGS_KEY }}
    portainer-url: ${{ secrets.PORTAINER_URL }}
    portainer-token: ${{ secrets.PORTAINER_TOKEN }}

About

Portainer Deploy Action

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published