build and deploy

This commit is contained in:
Administrator 2022-08-18 13:15:47 +03:00
parent 41653a553a
commit bdd1d46b88
4 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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
View File

@ -0,0 +1,2 @@
FROM nginx
COPY nginx.conf /etc/nginx/nginx.conf