Skip to content

Commit

Permalink
test apply new group-repo private
Browse files Browse the repository at this point in the history
  • Loading branch information
tanquangduong committed Sep 18, 2024
1 parent 84ebed9 commit 770f593
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/cd-docker-ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,14 @@ jobs:
# Add the user to the docker group
sudo usermod -aG docker $USER
# Apply the new group membership
newgrp docker <<EONG
# Log in to Docker
echo "${{ secrets.DOCKERHUB_TOKEN }}" | sudo docker login --username "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
# Verify Docker login
sudo docker info
docker info
# Free up disk space
docker system prune -a -f
Expand All @@ -80,4 +83,6 @@ jobs:
docker stop ${{ env.DOCKERHUB_REPO }}-container || true
docker rm ${{ env.DOCKERHUB_REPO }}-container || true
docker run --name ${{ env.DOCKERHUB_REPO }}-container -d -p 8501:8501 ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.DOCKERHUB_REPO }}:latest
EONG
EOF

0 comments on commit 770f593

Please sign in to comment.