Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Guardians of the Kretschmar Elock System
Doorcode
Commits
6b487568
Commit
6b487568
authored
Dec 15, 2020
by
Jacob Priddy
👌
Browse files
copy over env before container build
parent
512f1f36
Pipeline
#13217
failed with stages
in 3 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
6b487568
...
...
@@ -100,10 +100,10 @@ deploy application:
src/backend/node_modules
.env
-
docker-compose -f docker-compose.prod.yml build
-
docker build -t $DOORCODE_IMAGE_NAME -f prod.Dockerfile .
-
docker build --build-arg APP_IMAGE=$DOORCODE_IMAGE_NAME -t $NGINX_IMAGE_NAME -f nginx.Dockerfile .
-
sed -i "s/\(^DB_PASSWORD=\).*/\1$(cat $POSTGRES_PASSWORD)/" $PROJ_DIR/.env
-
cp $PROJ_DIR/.env .env
-
docker build -t $DOORCODE_IMAGE_NAME -f prod.Dockerfile .
-
docker build --build-arg APP_IMAGE=$DOORCODE_IMAGE_NAME -t $NGINX_IMAGE_NAME -f nginx.Dockerfile .
-
docker stack deploy -c docker-compose.prod.yml doorcode --prune
# Give it some time to spin up...
-
sleep
10
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment