Fakultas Ilmu Komputer UI

Commit 6685ad9e authored by Naufaldi Athallah Rifqi's avatar Naufaldi Athallah Rifqi
Browse files

fix ci

parent b8aaa87d
Pipeline #59593 failed with stage
in 1 minute and 14 seconds
...@@ -13,7 +13,7 @@ deploy-staging: ...@@ -13,7 +13,7 @@ deploy-staging:
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
script: script:
- ssh $SSH_USER@$SSH_IP "git clone https://gitlab.cs.ui.ac.id/ossd/2020/kompeni/jitsi-no-jutsu-backend.git && cd $APP_PATH && git pull origin main" - ssh $SSH_USER@$SSH_IP "cd $APP_PATH && git pull origin staging"
- ssh $SSH_PRIVATE_KEY $SSH_USER@$SSH_IP_PROD "docker stop jitsi-no-jutsu-backend || true && docker rm jitsi-no-jutsu-backend" - ssh $SSH_PRIVATE_KEY $SSH_USER@$SSH_IP_PROD "docker stop jitsi-no-jutsu-backend || true && docker rm jitsi-no-jutsu-backend"
- ssh $SSH_PRIVATE_KEY $SSH_USER@$SSH_IP_PROD "docker build -t jitsi-no-jutsu-backend ." - ssh $SSH_PRIVATE_KEY $SSH_USER@$SSH_IP_PROD "docker build -t jitsi-no-jutsu-backend ."
- ssh $SSH_PRIVATE_KEY $SSH_USER@$SSH_IP_PROD "docker run -d jitsi-no-jutsu-backend" - ssh $SSH_PRIVATE_KEY $SSH_USER@$SSH_IP_PROD "docker run -d jitsi-no-jutsu-backend"
\ 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