Skip to content

Commit

Permalink
feat: publish kapps server to ghcr (#2753)
Browse files Browse the repository at this point in the history
* feat: publish kapps server to ghcr

---------

Signed-off-by: Tarun Gupta Akirala <[email protected]>
  • Loading branch information
takirala authored Nov 20, 2024
1 parent b1e2df6 commit 60610ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion just/test.just
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
8 changes: 4 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 60610ff

Please sign in to comment.