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 }