ci: production preparations
This commit is contained in:
parent
08dbffd121
commit
a9c69d7aba
@ -17,7 +17,16 @@ build-app:
|
||||
|
||||
deploy-to-staging:
|
||||
extends: .deploy_template
|
||||
rules:
|
||||
- if: "$CI_COMMIT_BRANCH == $STAGING_BRANCH"
|
||||
tags:
|
||||
- front
|
||||
- staging
|
||||
|
||||
deploy-to-prod:
|
||||
extends: .deploy_template
|
||||
rules:
|
||||
- if: "$CI_COMMIT_BRANCH == $PRODUCTION_BRANCH"
|
||||
tags:
|
||||
- front
|
||||
- prod
|
||||
|
@ -11,4 +11,5 @@ RUN yarn build
|
||||
FROM nginx:latest as result
|
||||
WORKDIR /usr/share/nginx/html
|
||||
COPY --from=build /usr/app/dist/ /usr/share/nginx/html
|
||||
COPY pub.js /usr/share/nginx/html/export/pub.js
|
||||
COPY hub.conf /etc/nginx/conf.d/default.conf
|
||||
|
8
deployments/main/docker-compose.yaml
Normal file
8
deployments/main/docker-compose.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
services:
|
||||
respondent:
|
||||
container_name: respondent
|
||||
restart: unless-stopped
|
||||
image: $CI_REGISTRY_IMAGE/main:$CI_COMMIT_REF_SLUG.$CI_PIPELINE_ID
|
||||
hostname: respondent
|
||||
tty: true
|
||||
|
@ -3,11 +3,6 @@ services:
|
||||
container_name: respondent
|
||||
restart: unless-stopped
|
||||
image: $CI_REGISTRY_IMAGE/staging:$CI_COMMIT_REF_SLUG.$CI_PIPELINE_ID
|
||||
networks:
|
||||
- marketplace_penahub_frontend
|
||||
hostname: respondent
|
||||
tty: true
|
||||
networks:
|
||||
marketplace_penahub_frontend:
|
||||
external: true
|
||||
|
||||
|
1
pub.js
Normal file
1
pub.js
Normal file
@ -0,0 +1 @@
|
||||
console.log("PEHA NUB")
|
Loading…
Reference in New Issue
Block a user