2023-10-02 16:51:20 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: deploy
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Push to Portainer
|
|
|
|
image: alpine
|
|
|
|
commands:
|
|
|
|
- apk update
|
|
|
|
- apk add envsubst curl
|
|
|
|
- envsubst < portainer_deploy.template.json > portainer_deploy.json
|
2023-10-02 16:56:45 +00:00
|
|
|
- curl -d @portainer_deploy.json -H "Content-Type:application/json" -H "X-API-Key:ptr_RwxH2Cd+htdD2FoFiG46erT9beyvj9VoF3BrQPtDH3Q=" -X POST https://dvportainer.privatedns.org/api/stacks/create/standalone/repository?endpointId=10
|
2023-10-02 16:51:20 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- main
|