Skip to content

Commit

Permalink
chore(cd): add secrets DEPLOY_PASSWORD to curl docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
ngyngcphu committed Sep 15, 2023
1 parent 0f4eca7 commit 7b26732
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ jobs:
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
cd /tickserver/backends/ssps-fe
curl https://raw.githubusercontent.com/ticklabvn/ssps-fe/main/docker-compose.yml -o docker-compose.yml
export SUDO=${{ secrets.DEPLOY_PASSWORD }}
echo $SUDO | sudo curl https://raw.githubusercontent.com/ticklabvn/ssps-fe/main/docker-compose.yml -o docker-compose.yml
docker compose stop ssps-fe
docker compose rm -f ssps-fe
docker compose up -d ssps-fe
Expand Down

0 comments on commit 7b26732

Please sign in to comment.