ci: production preparations

This commit is contained in:
skeris 2024-01-30 22:03:44 +03:00
parent 08dbffd121
commit a9c69d7aba
5 changed files with 19 additions and 5 deletions

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

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

@ -0,0 +1 @@
console.log("PEHA NUB")