Try fixing multiline drone command
continuous-integration/drone/push Build is failing Details

pull/1/head
lars 2023-10-02 20:36:18 -05:00
parent bac592b5b0
commit afae2764e2
1 changed files with 24 additions and 23 deletions

View File

@ -1,24 +1,25 @@
kind: pipeline kind: pipeline
type: docker type: docker
name: deploy name: deploy
steps: steps:
- name: Push to Portainer - name: Push to Portainer
image: alpine image: alpine
commands: commands:
- apk update - apk update
- apk add envsubst curl python3 - apk add envsubst curl python3
- python3 -m ensurepip - python3 -m ensurepip
- pip3 install requests python-dotenv --quiet - pip3 install requests python-dotenv --quiet
- python3 deploy/portainer/deploy.py \ - |
--PORTAINER https://dvportainer.privatedns.org \ python3 deploy/portainer/deploy.py
--API_KEY=ptr_RwxH2Cd+htdD2FoFiG46erT9beyvj9VoF3BrQPtDH3Q= \ --PORTAINER https://dvportainer.privatedns.org
--PORTAINER_EP=CICD-runner \ --API_KEY=ptr_RwxH2Cd+htdD2FoFiG46erT9beyvj9VoF3BrQPtDH3Q=
--DEPLOY_REPO_URL=${DRONE_REPO_LINK} \ --PORTAINER_EP=CICD-runner
--DEPLOY_REF=${DRONE_COMMIT_REF} \ --DEPLOY_REPO_URL=${DRONE_REPO_LINK}
--DEPLOY_HOST=dvdemo.privatedns.org \ --DEPLOY_REF=${DRONE_COMMIT_REF}
--DEPLOY_NAME=${DRONE_COMMIT_SHA} --DEPLOY_HOST=dvdemo.privatedns.org
--DEPLOY_NAME=${DRONE_COMMIT_SHA}
trigger:
branch: trigger:
branch:
- main - main