build and deploy
This commit is contained in:
parent
41653a553a
commit
bdd1d46b88
@ -4,9 +4,8 @@ version: "3.4"
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx
|
image: mathwave/sprint-repo:sprint-nginx
|
||||||
volumes:
|
volumes:
|
||||||
- ../nginx:/etc/nginx
|
|
||||||
- /sprint-data/static:/var/www/html/static
|
- /sprint-data/static:/var/www/html/static
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
|
@ -4,9 +4,8 @@ version: "3.4"
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx
|
image: mathwave/sprint-repo:sprint-nginx
|
||||||
volumes:
|
volumes:
|
||||||
- ../nginx:/etc/nginx
|
|
||||||
- /sprint-data/static:/var/www/html/static
|
- /sprint-data/static:/var/www/html/static
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
|
@ -12,6 +12,8 @@ build:
|
|||||||
script:
|
script:
|
||||||
- docker build -t mathwave/sprint-repo:sprint .
|
- docker build -t mathwave/sprint-repo:sprint .
|
||||||
- docker push 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:
|
.deploy:
|
||||||
before_script:
|
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