Skip to content

Commit

Permalink
feat: Add Docker login step to build and deploy workflow for GitHub C…
Browse files Browse the repository at this point in the history
…ontainer Registry
  • Loading branch information
endersonmenezes committed Jan 8, 2025
1 parent 9ede97b commit 10f9e1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
# 2. Fazer o build da imagem e push
- name: Build and Push Docker image
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
docker buildx build --platform linux/amd64,linux/arm64/v8 -t ghcr.io/${{ github.repository_owner }}/tutor-image:latest --push .
deploy:
Expand Down

0 comments on commit 10f9e1a

Please sign in to comment.