From afae2764e2306272ee8db1228de319e475f4e73f Mon Sep 17 00:00:00 2001 From: lars Date: Mon, 2 Oct 2023 20:36:18 -0500 Subject: [PATCH] Try fixing multiline drone command --- .drone.yml | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/.drone.yml b/.drone.yml index d318b3f..43fc00e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,24 +1,25 @@ -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} - -trigger: - branch: +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} + +trigger: + branch: - main \ No newline at end of file