diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml index 275ee6c..9a03ba2 100644 --- a/.github/workflows/builder.yml +++ b/.github/workflows/builder.yml @@ -59,6 +59,14 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to GitHub Container Registry + if: needs.init.outputs.publish == 'true' + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ secrets.GIT_USER }} + password: ${{ secrets.GIT_TOKEN }} + - name: Set build arguments if: needs.init.outputs.publish == 'false' run: echo "BUILD_ARGS=--test" >> $GITHUB_ENV diff --git a/build.json b/build.json index b706f6a..a38265f 100644 --- a/build.json +++ b/build.json @@ -1,11 +1,12 @@ { "image": "homeassistant/{arch}-hassio-multicast", + "shadow_repository": "ghcr.io/home-assistant", "build_from": { - "aarch64": "homeassistant/aarch64-base:3.12", - "armhf": "homeassistant/armhf-base:3.12", - "armv7": "homeassistant/armv7-base:3.12", - "amd64": "homeassistant/amd64-base:3.12", - "i386": "homeassistant/i386-base:3.12" + "aarch64": "ghcr.io/home-assistant/aarch64-base:3.12", + "armhf": "ghcr.io/home-assistant/armhf-base:3.12", + "armv7": "ghcr.io/home-assistant/armv7-base:3.12", + "amd64": "ghcr.io/home-assistant/amd64-base:3.12", + "i386": "ghcr.io/home-assistant/i386-base:3.12" }, "args": { "MDNS_REPEATER_VERSION": "1.1.2"