Use GitHub Container Registry for Supervisor (#2005) (#2009)

* Use GitHub Container Registry (#2005)

* Tag with ghcr.io prefix
This commit is contained in:
Stefan Agner 2022-07-08 16:33:04 +02:00 committed by GitHub
parent 5c70c57a70
commit 0139030404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ done
# Tag the Supervisor how the OS expects it to be tagged
supervisor=$(docker images --filter "label=io.hass.type=supervisor" --quiet)
arch=$(docker inspect --format '{{ index .Config.Labels "io.hass.arch" }}' "${supervisor}")
docker tag "${supervisor}" "homeassistant/${arch}-hassio-supervisor:latest"
docker tag "${supervisor}" "ghcr.io/homeassistant/${arch}-hassio-supervisor:latest"
# Setup AppArmor
mkdir -p "/data/supervisor/apparmor"

View File

@ -12,7 +12,7 @@ set -e
SUPERVISOR_DATA=/mnt/data/supervisor
SUPERVISOR_STARTUP_MARKER="/run/supervisor/startup-marker"
SUPERVISOR_STARTSCRIPT_VERSION="/mnt/data/.hassos-supervisor-version"
SUPERVISOR_IMAGE="homeassistant/${SUPERVISOR_ARCH}-hassio-supervisor"
SUPERVISOR_IMAGE="ghcr.io/homeassistant/${SUPERVISOR_ARCH}-hassio-supervisor"
SUPERVISOR_IMAGE_ID=$(docker images --no-trunc --filter "reference=${SUPERVISOR_IMAGE}:latest" --format "{{.ID}}" || echo "")
SUPERVISOR_CONTAINER_ID=$(docker inspect --format='{{.Image}}' hassio_supervisor || echo "")