diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e93342c5..502c21ba 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,6 +11,15 @@ env: DOCKER_TAG: ${{ github.sha }} jobs: + login: + runs-on: ubuntu-latest + steps: + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + build-and-deploy: runs-on: ubuntu-latest @@ -24,12 +33,6 @@ jobs: cache: 'npm' cache-dependency-path: ./BE/package-lock.json - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ vars.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Install dependencies working-directory: ./BE run: npm ci