From 60610ffd5a93832d18a4ba04db2fa2327a514f7f Mon Sep 17 00:00:00 2001 From: Tarun Gupta Akirala Date: Tue, 19 Nov 2024 21:49:11 -0800 Subject: [PATCH] feat: publish kapps server to ghcr (#2753) * feat: publish kapps server to ghcr --------- Signed-off-by: Tarun Gupta Akirala --- just/test.just | 2 +- justfile | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/just/test.just b/just/test.just index 39844992d..0077cdda4 100644 --- a/just/test.just +++ b/just/test.just @@ -10,7 +10,7 @@ _run_server: (release-server "false") --publish 12345:12345 \ --detach \ --user 1000:1000 \ - {{ server_docker_repository }}:{{ git_tag }} + {{ server_repository }}:{{ git_tag }} _kill_server: docker kill {{ test_container_name }} diff --git a/justfile b/justfile index 68651f067..fad2a91e7 100644 --- a/justfile +++ b/justfile @@ -2,13 +2,13 @@ set dotenv-load git_tag := env_var_or_default("GIT_TAG", "v0.0.0") -registry := "docker.io" +registry := "ghcr.io" org_name := "mesosphere" repository := org_name / "kommander-applications" include_file := justfile_directory() / ".include-airgapped" exclude_file := justfile_directory() / ".exclude-airgapped" git_operator_version := env("GIT_OPERATOR_VERSION", "latest") -server_docker_repository := registry / org_name / "kommander-applications-server" +server_repository := registry / org_name / "kommander-applications-server" s3_path := "dkp" / git_tag s3_bucket := "downloads.mesosphere.io" @@ -39,9 +39,9 @@ release-oci publish="true" tmp_dir=`mktemp --directory`: (_prepare-files-for-a-b release-server publish="true" tmp_dir=`mktemp --directory`: (_prepare-git-repository tmp_dir) cp -r {{ tmp_dir }} ./server/data/ - cd ./server && docker buildx build . --tag {{ server_docker_repository }}:{{ git_tag }} + cd ./server && docker buildx build . --tag {{ server_repository }}:{{ git_tag }} rm -rf ./server/data/ - if {{ publish }}; then docker push {{ server_docker_repository }}:{{ git_tag }}; fi + if {{ publish }}; then docker push {{ server_repository }}:{{ git_tag }}; fi service_version:=`ls services/git-operator/ | grep -E "v?[[:digit:]]\.[[:digit:]]\.[[:digit:]]"` service_dir:=justfile_directory() / "services/git-operator" / service_version