Skip to content

Commit 377f5ad

Browse files
committed
ci: remove .env file from docker images
1 parent 9ea9239 commit 377f5ad

5 files changed

Lines changed: 9 additions & 5 deletions

File tree

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules
22
.env
3+
*/.env
34
.git
45
test

.github/workflows/production.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ jobs:
3939
echo "$APKEY" > ./ansible/key.pem
4040
echo "$CADDY" > ./ansible/Caddyfile
4141
echo "$ENVARS" > ./ansible/production.env
42-
echo "$ENVARS" > ./packages/api/.env
43-
echo "$ENVARS" > ./packages/ui/.env
4442
chmod 400 ./ansible/key.pem
4543
sed -i "s#LOKI-REPLACE-ME#$LOKI#g" ./ansible/docker-compose.yml
4644
sed -i "s#<LATEST_PROD>#${{ steps.gettag.outputs.TAG }}#g" ./ansible/docker-compose.yml

.github/workflows/staging.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ jobs:
4040
echo "$APKEY" > ./ansible/key.pem
4141
echo "$CADDY" > ./ansible/Caddyfile
4242
echo "$ENVARS" > ./ansible/staging.env
43-
echo "$ENVARS" > ./packages/api/.env
44-
echo "$ENVARS" > ./packages/ui/.env
4543
chmod 400 ./ansible/key.pem
4644
sed -i "s#LOKI-REPLACE-ME#$LOKI#g" ./ansible/docker-compose.yml
4745
sed -i "s#<LATEST_PROD>#${{ steps.gettag.outputs.TAG }}#g" ./ansible/docker-compose.yml

packages/api/.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ node_modules
22
.env
33
.git
44
test
5-
readme.md
5+
readme.md
6+
**/.env

packages/ui/.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
.env
3+
.git
4+
test
5+
readme.md
6+
**/.env

0 commit comments

Comments
 (0)