Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
OSSD
2020
Kompeni
Jitsi No Jutsu Backend
Commits
6095e178
Commit
6095e178
authored
Oct 26, 2020
by
Fijar Lazuardy
Browse files
Merge branch 'staging' into 'main'
Staging See merge request
!1
parents
e7d6afc7
efd2cfcf
Changes
3
Hide whitespace changes
Inline
Side-by-side
.env.production
View file @
6095e178
URL = http://jitsi-kompeni.cs.ui.ac.id
URL = https://staging-meet.fijar-lazuardy.xyz
\ No newline at end of file
.gitlab-ci.yml
View file @
6095e178
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
Dockerfile
View file @
6095e178
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment