From 581b46e4bccfc43b4c5f0afb41fa29b8fa89a9bf Mon Sep 17 00:00:00 2001 From: echo8 Date: Wed, 20 Nov 2024 11:49:39 +0900 Subject: [PATCH] change container registry --- scripts/release.sh | 3 +++ src/.goreleaser.yaml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index 15a7918..da63553 100644 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -7,6 +7,9 @@ echo "ulimits: $(ulimit -Sn):$(ulimit -Hn)" sed -i 's/ulimit -Hn/# ulimit -Hn/g' /etc/init.d/docker service docker start +# login to github container registry +echo $GITHUB_TOKEN | docker login ghcr.io -u echo8 --password-stdin + # go to krp dir and run goreleaser cd /tmp/krp/src curl -sfL https://goreleaser.com/static/run | bash -s -- release diff --git a/src/.goreleaser.yaml b/src/.goreleaser.yaml index 8d54542..8b1713e 100644 --- a/src/.goreleaser.yaml +++ b/src/.goreleaser.yaml @@ -32,8 +32,8 @@ builds: dockers: - image_templates: - - "gcr.io/echo8/krp:{{ .Tag }}" - - "gcr.io/echo8/krp:latest" + - "ghcr.io/echo8/krp:{{ .Tag }}" + - "ghcr.io/echo8/krp:latest" dockerfile: ../docker/Dockerfile build_flag_templates: - "--build-arg=config_path=config.yaml"