DeployTests/.drone.yml

24 lines
670 B
YAML
Raw Normal View History

2023-10-03 01:36:18 +00:00
kind: pipeline
type: docker
name: deploy
steps:
- name: Push to Portainer
image: alpine
commands:
- apk update
- apk add envsubst curl python3
- python3 -m ensurepip
- pip3 install requests python-dotenv --quiet
- python3 deploy/portainer/deploy.py
--PORTAINER https://dvportainer.privatedns.org
--API_KEY=ptr_RwxH2Cd+htdD2FoFiG46erT9beyvj9VoF3BrQPtDH3Q=
--PORTAINER_EP=CICD-runner
--DEPLOY_REPO_URL=${DRONE_REPO_LINK}
--DEPLOY_REF=${DRONE_COMMIT_REF}
--DEPLOY_HOST=dvdemo.privatedns.org
--DEPLOY_NAME=${DRONE_COMMIT_SHA}
2023-10-03 01:36:18 +00:00
trigger:
branch:
2023-10-02 16:51:20 +00:00
- main