From aa3cd9d749ea639355232319bcadb6aa007c4b84 Mon Sep 17 00:00:00 2001 From: lars Date: Mon, 2 Oct 2023 11:56:45 -0500 Subject: [PATCH] Fix curl line + git ref --- .drone.yml | 2 +- portainer_deploy.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 171877d..eb7a46a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,7 +9,7 @@ steps: - apk update - apk add envsubst curl - envsubst < portainer_deploy.template.json > portainer_deploy.json - - curl -d "portainer_deploy.json" -H "X-Api-Key=ptr_RwxH2Cd+htdD2FoFiG46erT9beyvj9VoF3BrQPtDH3Q=" -X POST https://dvportainer.privatedns.org/stacks/create/standalone/repository + - 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 trigger: branch: diff --git a/portainer_deploy.json b/portainer_deploy.json index ff2c867..983bafe 100644 --- a/portainer_deploy.json +++ b/portainer_deploy.json @@ -19,7 +19,7 @@ "repositoryAuthentication": true, "repositoryUsername": "cicd", "repositoryPassword": "gJ6@$7ZjWGyV4%i", - "repositoryReferenceName": "/refs/heads/main", + "repositoryReferenceName": "refs/heads/main", "repositoryURL": "https://dvgit.privatedns.org/lars/DeployTests", "tlsskipVerify": false }