diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 009af81fb0..aa9247fde2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,14 +50,14 @@ jobs: echo "BRANCH_REF=$(echo '${{ github.ref }}' | sed -E 's/[^A-Za-z0-9]+/-/g')" >> $GITHUB_ENV echo "BASE_IMAGE=ubuntu:18.04" >> $GITHUB_ENV echo "CORE_IMAGE=dependabot/dependabot-core" >> $GITHUB_ENV - echo "CORE_CI_IMAGE=dependabot/dependabot-core-ci" >> $GITHUB_ENV + echo "CORE_CI_IMAGE=ghcr.io/${{ github.repository_owner }}/dependabot-core/dependabot-core-ci" >> $GITHUB_ENV - name: Log in to Docker registry run: | - if [ -n "${{ secrets.DOCKER_USERNAME }}" ] && [ -n "${{ secrets.DOCKER_PASSWORD }}" ]; then - echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin - echo "DOCKER_LOGGED_IN=true" >> $GITHUB_ENV - else + if [[ -z "${{ secrets.GHCR_PAT }}" ]]; then echo "No Docker credentials, skipping login" + else + echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + echo "DOCKER_LOGGED_IN=true" >> $GITHUB_ENV fi - name: Set test env credentials run: |