From 1770f65b366186e25d6e7e991e94d6b94bc5f085 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 25 Mar 2021 14:14:15 +0100 Subject: [PATCH 1/2] Use ghcr.io --- build.json | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build.json b/build.json index 3432faa..7a14997 100644 --- a/build.json +++ b/build.json @@ -1,11 +1,12 @@ { "image": "homeassistant/{arch}-hassio-dns", + "shadow_repository": "ghcr.io/home-assistant", "build_from": { - "aarch64": "homeassistant/aarch64-base:3.13", - "armhf": "homeassistant/armhf-base:3.13", - "armv7": "homeassistant/armv7-base:3.13", - "amd64": "homeassistant/amd64-base:3.13", - "i386": "homeassistant/i386-base:3.13" + "aarch64": "ghcr.io/home-assistant/aarch64-base:3.13", + "armhf": "ghcr.io/home-assistant/armhf-base:3.13", + "armv7": "ghcr.io/home-assistant/armv7-base:3.13", + "amd64": "ghcr.io/home-assistant/amd64-base:3.13", + "i386": "ghcr.io/home-assistant/i386-base:3.13" }, "labels": { "io.hass.type": "dns" From 3118ea99d61387f860ebe006bb954a434563844e Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 25 Mar 2021 14:15:05 +0100 Subject: [PATCH 2/2] Update builder.yml --- .github/workflows/builder.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml index 6ba0d83..70d6f93 100644 --- a/.github/workflows/builder.yml +++ b/.github/workflows/builder.yml @@ -60,6 +60,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