Skip to content

Commit

Permalink
๐Ÿ™€ chore: token ๋ฐœ๊ธ‰๋ฐ›๋Š” ๋ถ€๋ถ„ ์ถ”๊ฐ€
Browse files Browse the repository at this point in the history
  • Loading branch information
Honghyeonji committed Jan 15, 2025
1 parent 7227827 commit d671848
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/boolock-dev-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,9 @@ jobs:
- name: Authenticate with Docker Hub
run: |
TOKEN=$(curl -s -u "${{ secrets.DOCKERHUB_USERNAME }}:${{ secrets.DOCKERHUB_PASSWORD }}" \
"https://auth.docker.io/token?service=registry.docker.io&scope=repository:${{ secrets.DOCKERHUB_USERNAME }}/base-image:pull" | jq -r .token)
"https://auth.docker.io/token?service=registry.docker.io&scope=repository:${{ secrets.DOCKERHUB_USERNAME }}/base-image:pull,push" | jq -r .token)
echo "Token: $TOKEN"
curl -H "Authorization: Bearer $TOKEN" -v https://registry-1.docker.io/v2/
- name: Test Docker Hub Connectivity
run: curl -v https://registry-1.docker.io/v2/
curl -H "Authorization: Bearer $TOKEN" -v https://registry-1.docker.io/v2/${{ secrets.DOCKERHUB_USERNAME }}/base-image/manifests/latest
- name: Pull Base Image (Remote)
run: docker pull docker.io/${{ secrets.DOCKERHUB_USERNAME }}/base-image:latest
Expand Down

0 comments on commit d671848

Please sign in to comment.