diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9bdb75..5dc74a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,12 +67,6 @@ jobs: GITHUB_RUN_ID: ${{ github.run_id }} steps: - uses: actions/checkout@master - - - name: Login to registry - uses: actions-hub/docker/login@master - env: - DOCKER_USERNAME: ${{ secrets.DOCKER_USER }} - DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} - name: Get branch name (merge) if: github.event_name != 'pull_request' @@ -84,6 +78,12 @@ jobs: shell: bash run: echo "BRANCH_NAME=$(echo ${GITHUB_HEAD_REF} | tr / -)" >> $GITHUB_ENV + - name: Login to registry + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USER }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Build and push if: success() uses: docker/build-push-action@v3