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 URL = https://staging-meet.fijar-lazuardy.xyz
\ No newline at end of file
image: node:latest image: node:latest
stages: deploy-staging:
- build stage: deploy
- test only:
- staging
cache: before_script:
paths: - apt-get update -qq
- node_modules/ - apt-get install -qq git
- 'which ssh-agent || ( apt-get install -qq openssh-client )'
install_dependencies: - eval $(ssh-agent -s)
stage: build - ssh-add <(echo "$SSH_PRIVATE_KEY")
script: - mkdir -p ~/.ssh
- npm install - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
artifacts: script:
paths: - ssh $SSH_USER@$SSH_IP "cd jitsi-no-jutsu-backend && git pull origin staging"
- node_modules/ - 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"
testing_testing: # - ssh $SSH_USER@$SSH_IP "docker-compose up --build -d"
stage: test #- ssh $SSH_USER@$SSH_IP "docker run -d jitsi-no-jutsu-backend"
script: npm test
\ No newline at end of file
...@@ -16,4 +16,4 @@ RUN npm install ...@@ -16,4 +16,4 @@ RUN npm install
COPY . . COPY . .
EXPOSE 8080 EXPOSE 8080
CMD [ "npm", "start" ] CMD [ "npm", "run","start:prod" ]
\ No newline at end of file \ No newline at end of file
Supports Markdown
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