Skip to content

Deploy

Deploy #75

Workflow file for this run

name: Deploy
on:
workflow_run:
workflows: [Build and Push to Docker Hub]
types:
- completed
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- name: Deploy Stack to Portainer
uses: LGinC/portainer-stack-deploy@master
with:
serverurl: ${{ secrets.PORTAINER_HOST }}
access_token: ${{ secrets.PORTAINER_ACCESS_TOKEN }}
username: ${{ secrets.PORTAINER_USERNAME }}
password: ${{ secrets.PORTAINER_PASSWORD }}
endpointId: 2
variables: |
backend_protocol=${{ secrets.BACKEND_PROTOCOL }}
backend_host=${{ secrets.BACKEND_HOST }}
backend_port=${{ secrets.BACKEND_PORT }}
mongodb_uris=${{ secrets.MONGODB_URIS }}
mongodb_replica_set=${{ secrets.MONGODB_REPLICA_SET }}
mongodb_database=${{ secrets.MONGODB_DATABASE }}
aes_key=${{ secrets.AES_KEY }}
stackname: '${{ secrets.PORTAINER_STACK_NAME }}'
docker_compose_path: './deployment/docker-compose.yaml'