Skip to content

Commit 1f673ee

Browse files
committed
Use UPPER CASE for environment variables in compose file
1 parent a759f03 commit 1f673ee

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
2-
export image_hash=$1
3-
export tag=$2
2+
export IMAGE=$1
3+
export TAG=$2
44
echo echo "Take down old api version..." \
55
&& docker compose -f docker-compose-prod.yml down \
66
&& echo "Bring up new api version..." \

docker-compose-prod.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
- MEDIA_ROOT=/api/media
88
env_file:
99
- env/prod.env
10-
image: ${image}:${tag}
10+
image: ${IMAGE}:${TAG}
1111
ports:
1212
- 8000:8000
1313
secrets:
@@ -25,7 +25,7 @@ services:
2525
- MEDIA_ROOT=/api/media
2626
env_file:
2727
- env/prod.env
28-
image: ${image}:${tag}
28+
image: ${IMAGE}:${TAG}
2929
secrets:
3030
- firebase-credentials
3131
volumes:

0 commit comments

Comments
 (0)