Skip to content

Commit

Permalink
ci: added docker login step
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasgmarques committed Jul 11, 2024
1 parent e5b9302 commit c4c9d31
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,12 @@ jobs:
SHA=$(echo $GITHUB_SHA | head -c7)
echo "sha=$SHA" >> $GITHUB_OUTPUT
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build docker image
run: docker build -t lucasgmarques/nlw-api-journey:${{ steps.generate_sha.outputs.sha }} .

0 comments on commit c4c9d31

Please sign in to comment.