Skip to content

Commit

Permalink
Migrate to ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
uraimo committed Jul 20, 2021
1 parent 92ee4ed commit 3cd130c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/run-on-arch.sh
Expand Up @@ -11,7 +11,7 @@ declare -a DOCKER_RUN_ARGS=${@:3:${#@}}
# Defaults
ACTION_DIR="$(cd "$(dirname "$0")"/.. >/dev/null 2>&1 ; pwd -P)"
LOWERCASE_REPOSITORY=$(printf "%s" "$GITHUB_REPOSITORY" | tr '[:upper:]' '[:lower:]')
PACKAGE_REGISTRY="docker.pkg.github.com/${LOWERCASE_REPOSITORY}/${CONTAINER_NAME}"
PACKAGE_REGISTRY="ghcr.io/${LOWERCASE_REPOSITORY}/${CONTAINER_NAME}"
DEBIAN_FRONTEND=noninteractive

show_build_log_and_exit () {
Expand Down Expand Up @@ -62,7 +62,7 @@ build_container () {
# Login without echoing token, just in case
BASH_FLAGS="$-"
set +x
echo "$GITHUB_TOKEN" | docker login docker.pkg.github.com \
echo "$GITHUB_TOKEN" | docker login ghcr.io \
-u "$GITHUB_ACTOR" \
--password-stdin
set "$BASH_FLAGS"
Expand Down

0 comments on commit 3cd130c

Please sign in to comment.