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"