Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
quytranDF committed Sep 8, 2024
1 parent 0f083d3 commit df271ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
machine:
image: ubuntu-2004:current
working_directory: ~/map-sorter-api
environment:
DOCKER_IMAGE: high10hunter/map-sorter-api
DOCKER_TAG: latest
steps:
- aws-cli/setup:
role-arn: 'arn:aws:iam::${AWS_ACCOUNT_ID}:role/circleci-oidc-provider-aws'
Expand All @@ -64,7 +67,7 @@ jobs:
name: SSH into dev server and deploy
command: |
echo "SSH into dev server"
ssh -o StrictHostKeyChecking=no -v $SSH_USER@$SSH_HOST "su - gdsc -c 'echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin && docker pull $DOCKER_IMAGE:$DOCKER_TAG && docker container stop map-sorter-api || true && docker container rm map-sorter-api || true && docker run --log-opt max-size=10m --log-opt max-file=3 --log-opt compress=true --name map-sorter-api -d --env-file .env $DOCKER_IMAGE:$DOCKER_TAG && docker image prune --all -f'"
ssh -o StrictHostKeyChecking=no -v $SSH_USER@$SSH_HOST "su - gdsc -c 'cd map-sorter-api && echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin && docker pull $DOCKER_IMAGE:$DOCKER_TAG && docker container stop map-sorter-api || true && docker container rm map-sorter-api || true && docker run --log-opt max-size=10m --log-opt max-file=3 --log-opt compress=true --name map-sorter-api -d --env-file .env $DOCKER_IMAGE:$DOCKER_TAG && docker image prune --all -f'"
# - run:
# name: Login to DockerHub
Expand Down

0 comments on commit df271ef

Please sign in to comment.