build and deploy
This commit is contained in:
parent
41653a553a
commit
bdd1d46b88
@ -4,9 +4,8 @@ version: "3.4"
|
||||
services:
|
||||
|
||||
nginx:
|
||||
image: nginx
|
||||
image: mathwave/sprint-repo:sprint-nginx
|
||||
volumes:
|
||||
- ../nginx:/etc/nginx
|
||||
- /sprint-data/static:/var/www/html/static
|
||||
networks:
|
||||
- net
|
||||
|
@ -4,9 +4,8 @@ version: "3.4"
|
||||
services:
|
||||
|
||||
nginx:
|
||||
image: nginx
|
||||
image: mathwave/sprint-repo:sprint-nginx
|
||||
volumes:
|
||||
- ../nginx:/etc/nginx
|
||||
- /sprint-data/static:/var/www/html/static
|
||||
networks:
|
||||
- net
|
||||
|
@ -12,6 +12,8 @@ build:
|
||||
script:
|
||||
- docker build -t mathwave/sprint-repo:sprint .
|
||||
- docker push mathwave/sprint-repo:sprint
|
||||
- docker build -t mathwave/sprint-repo:sprint-nginx nginx
|
||||
- docker push mathwave/sprint-repo:sprint-nginx
|
||||
|
||||
.deploy:
|
||||
before_script:
|
||||
|
2
nginx/Dockerfile
Normal file
2
nginx/Dockerfile
Normal file
@ -0,0 +1,2 @@
|
||||
FROM nginx
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
Loading…
Reference in New Issue
Block a user