Fakultas Ilmu Komputer UI

Commit 6095e178 authored by Fijar Lazuardy's avatar Fijar Lazuardy
Browse files

Merge branch 'staging' into 'main'

Staging

See merge request !1
parents e7d6afc7 efd2cfcf
URL = http://jitsi-kompeni.cs.ui.ac.id
\ No newline at end of file
URL = https://staging-meet.fijar-lazuardy.xyz
image: node:latest
stages:
- build
- test
cache:
paths:
- node_modules/
install_dependencies:
stage: build
script:
- npm install
artifacts:
paths:
- node_modules/
testing_testing:
stage: test
script: npm test
\ No newline at end of file
deploy-staging:
stage: deploy
only:
- staging
before_script:
- apt-get update -qq
- apt-get install -qq git
- 'which ssh-agent || ( apt-get install -qq openssh-client )'
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
script:
- ssh $SSH_USER@$SSH_IP "cd jitsi-no-jutsu-backend && git pull origin staging"
- ssh $SSH_USER@$SSH_IP "cd jitsi-no-jutsu-backend && docker-compose down"
- ssh $SSH_USER@$SSH_IP "cd jitsi-no-jutsu-backend && docker-compose up --build -d"
# - ssh $SSH_USER@$SSH_IP "docker-compose up --build -d"
#- ssh $SSH_USER@$SSH_IP "docker run -d jitsi-no-jutsu-backend"
......@@ -16,4 +16,4 @@ RUN npm install
COPY . .
EXPOSE 8080
CMD [ "npm", "start" ]
\ No newline at end of file
CMD [ "npm", "run","start:prod" ]
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment