Skip to content

Commit

Permalink
Fix: Local builds can't push to local registry
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes-ucsc committed Nov 7, 2023
1 parent 5563567 commit af42e20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
# To facilitate local builds using the Makefile
driver-opts: ${{ startsWith(vars.DOCKERHUB_REPOSITORY, 'http://localhost') && 'network=host' || '' }}

- name: Log into registry
if: >
Expand All @@ -46,3 +49,5 @@ jobs:
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ vars.DOCKERHUB_REPOSITORY }}:${{ env.PYCHARM_VERSION }}-${{ env.azul_docker_pycharm_version }}
cache-from: type=registry,ref=${{ vars.DOCKERHUB_REPOSITORY }}/buildcache
cache-to: type=registry,ref=${{ vars.DOCKERHUB_REPOSITORY }}/buildcache,mode=max

0 comments on commit af42e20

Please sign in to comment.