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.
This commit is contained in:
parent
6c23aa5626
commit
b089fc2c61
8
.github/workflows/docker.yml
vendored
8
.github/workflows/docker.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user