From b089fc2c610812bc551df3dca79da7798899acd8 Mon Sep 17 00:00:00 2001 From: Finlay Davidson Date: Thu, 16 Jun 2022 02:47:05 +0200 Subject: [PATCH] Hardcode the Docker Hub username as infinitime This is so that pull requests that modify the docker image but don't have the DOCKER_HUB_USERNAME secret set won't fail. --- .github/workflows/docker.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 78bba860..bbc6a3c8 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -20,7 +20,7 @@ jobs: if: github.event_name != 'pull_request' uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKER_HUB_USERNAME }} + username: infinitime password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} - name: Set up QEMU @@ -37,6 +37,6 @@ jobs: platforms: linux/amd64,linux/arm64 builder: ${{ steps.buildx.outputs.name }} push: ${{ github.event_name != 'pull_request' }} - tags: ${{ secrets.DOCKER_HUB_USERNAME }}/infinitime-build:latest - cache-from: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/infinitime-build:buildcache - cache-to: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/infinitime-build:buildcache,mode=max + tags: infinitime/infinitime-build:latest + cache-from: type=registry,ref=infinitime/infinitime-build:buildcache + cache-to: type=registry,ref=infinitime/infinitime-build:buildcache,mode=max