From c4c9d319b6549e12c0ee6be82e2482bfcff3cc91 Mon Sep 17 00:00:00 2001 From: Lucas Marques Date: Thu, 11 Jul 2024 12:37:44 -0300 Subject: [PATCH] ci: added docker login step --- .github/workflows/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7ea1db2..a8b06dd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }} . +