aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-11-16 13:56:29 +0000
committerGravatar Gareth Coles <[email protected]>2018-11-16 13:56:29 +0000
commit343c1fbdbea110d9b4aca00c4182accb977d2202 (patch)
treee14f26e46572c4026325257572e05e920f3a0a00
parentAzure: Switch to shell script task instead of calling bash ourselves (diff)
Azure: OK, turns out secret variables must be task args and otherwise aren't available to the running script
-rw-r--r--azure-pipelines.yml1
-rw-r--r--scripts/deploy-azure.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index b9fe8beb0..fe7486a5c 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -55,3 +55,4 @@ jobs:
inputs:
scriptPath: scripts/deploy-azure.sh
+ args: '$(AUTODEPLOY_TOKEN) $(AUTODEPLOY_WEBHOOK)'
diff --git a/scripts/deploy-azure.sh b/scripts/deploy-azure.sh
index 84509f461..8cb9fe770 100644
--- a/scripts/deploy-azure.sh
+++ b/scripts/deploy-azure.sh
@@ -23,7 +23,7 @@ if [[ ($BUILD_SOURCEBRANCHNAME == 'master') && ($SYSTEM_PULLREQUEST_PULLREQUESTI
docker push pythondiscord/bot:latest
echo "Deploying container"
- curl -H "token: $AUTODEPLOY_TOKEN" $AUTODEPLOY_WEBHOOK
+ curl -H "token: $1" $2
else
echo "Skipping deploy"
fi \ No newline at end of file