From 7fe7dcf8a634fb4a4cdef4ca4601a438d0b5b378 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 7 Jul 2022 16:38:48 +0100 Subject: [PATCH] Adding login action. --- .github/workflows/deploy-single-image.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-single-image.yml b/.github/workflows/deploy-single-image.yml index aa1a7ec1f0..09deeacd2d 100644 --- a/.github/workflows/deploy-single-image.yml +++ b/.github/workflows/deploy-single-image.yml @@ -10,8 +10,6 @@ env: BASE_BRANCH: ${{ github.event.pull_request.base.ref}} BRANCH: ${{ github.event.pull_request.head.ref }} CI: true - DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }} - DOCKER_USER: ${{ secrets.DOCKER_USERNAME }} PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }} REGISTRY_URL: registry.hub.docker.com jobs: @@ -44,8 +42,10 @@ jobs: - name: Run Yarn Build run: yarn build - name: Login to Docker Hub - run: | - docker login -u $DOCKER_USER -p $DOCKER_PASSWORD + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_API_KEY }} - name: Get the latest release version id: version run: |