Skip to content

Commit 800ecda

Browse files
committed
Added encrypted env file
1 parent 23ebca3 commit 800ecda

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.env.enc

336 Bytes
Binary file not shown.

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@ services:
1313

1414
install: pip install -r backend/requirements.txt
1515

16+
# TODO: Reformat file as it is ugly. separatee jobs in yml, and lint as the last job to run
17+
1618
jobs:
1719
include:
1820
- stage: build
1921
script:
22+
- openssl aes-256-cbc -K $encrypted_3c84dcdc6bbe_key -iv $encrypted_3c84dcdc6bbe_iv -in .env.enc -out .env -d
2023
# login to github registry
2124
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin ghcr.io
2225
# build image
@@ -30,7 +33,7 @@ jobs:
3033
# login to github registry
3134
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin ghcr.io
3235
# pull images
33-
- docker pull PyMatchaAPI
36+
- docker pull pymatcha-api
3437
# run docker on port 80
3538
# do not forget to add env-file an environment file in Settings/CI CD/Variables
3639
- docker run -d -p 5000:5000 --restart always pymatcha-api

0 commit comments

Comments
 (0)