Skip to content

Commit

Permalink
do a docker login as part of deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
rikukissa committed Dec 15, 2023
1 parent d584daf commit c7aa311
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions infrastructure/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ echo
rsync -e "ssh -p $SSH_PORT" -az $PROJECT_ROOT/infrastructure $SSH_USER@$SSH_HOST:/opt/opencrvs/ --delete
rsync -e "ssh -p $SSH_PORT" /tmp/docker-compose.yml /tmp/docker-compose.deps.yml $SSH_USER@$SSH_HOST:/opt/opencrvs/infrastructure

ssh $SSH_USER@$SSH_HOST -p $SSH_PORT << EOF
docker login -u $DOCKER_USERNAME -p $DOCKER_TOKEN
EOF

rotate_secrets() {
files_to_rotate=$1
echo "ROTATING SECRETS ON: $files_to_rotate"
Expand Down

0 comments on commit c7aa311

Please sign in to comment.