We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 471831c + 33f5ec9 commit 23879b7Copy full SHA for 23879b7
deploy.sh
@@ -1,7 +1,8 @@
1
#!/bin/bash
2
-export IMAGE=$1
3
-export TAG=$2
4
-echo echo "Take down old api version..." \
5
- && docker compose -f docker-compose-prod.yml down \
+export ENV_FILE=$1
+export IMAGE=$2
+export TAG=$3
+echo "Take down old api version..." \
6
+ && docker compose -f docker-compose-prod.yml --env-file $ENV_FILE down \
7
&& echo "Bring up new api version..." \
- && docker compose -f docker-compose-prod.yml -p go-capture-api up -d
8
+ && docker compose -f docker-compose-prod.yml -p go-capture-api --env-file $ENV_FILE up -d
0 commit comments