From 9a13b0d2df7b08a71caeeebfae4c4003be2a1a64 Mon Sep 17 00:00:00 2001 From: lostbean Date: Thu, 27 Jun 2024 18:03:00 -0300 Subject: [PATCH 1/5] build cli image --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 7b287257..ba4ddd25 100644 --- a/flake.nix +++ b/flake.nix @@ -25,7 +25,7 @@ ]; }; - service_names = ["kardinal-manager" "redis-proxy-overlay"]; + service_names = ["kardinal-manager" "kardinal-cli" "redis-proxy-overlay"]; architectures = ["amd64" "arm64"]; imageRegistry = "kurtosistech"; From 3513226359ede13edbc848f801fa17e11f176341 Mon Sep 17 00:00:00 2001 From: lostbean Date: Thu, 27 Jun 2024 18:03:20 -0300 Subject: [PATCH 2/5] publish images to dockerhub --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95e77d9f..698d8abb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,3 +57,16 @@ jobs: run: | nix build ./#containers.x86_64-linux.kardinal-manager.arm64 --no-link --print-out-paths nix build ./#containers.x86_64-linux.kardinal-manager.amd64 --no-link --print-out-paths + nix build ./#containers.x86_64-linux.kardinal-cli.arm64 --no-link --print-out-paths + nix build ./#containers.x86_64-linux.kardinal-cli.amd64 --no-link --print-out-paths + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Publish images + run: | + nix run ./#publish-kardinal-manager-container + nix run ./#publish-kardinal-cli-container From 183b4abcfda24185e185d06f606668495b56f8d7 Mon Sep 17 00:00:00 2001 From: lostbean Date: Thu, 27 Jun 2024 20:27:44 -0300 Subject: [PATCH 3/5] also publish redis sidecar --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 698d8abb..67654bfb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,9 +57,17 @@ jobs: run: | nix build ./#containers.x86_64-linux.kardinal-manager.arm64 --no-link --print-out-paths nix build ./#containers.x86_64-linux.kardinal-manager.amd64 --no-link --print-out-paths + + - name: Build Kardinal CLI images + run: | nix build ./#containers.x86_64-linux.kardinal-cli.arm64 --no-link --print-out-paths nix build ./#containers.x86_64-linux.kardinal-cli.amd64 --no-link --print-out-paths + - name: Build Redis Sidecar images + run: | + nix build ./#containers.x86_64-linux.redis-proxy-overlay.arm64 --no-link --print-out-paths + nix build ./#containers.x86_64-linux.redis-proxy-overlay.amd64 --no-link --print-out-paths + - name: Login to Docker Hub uses: docker/login-action@v3 with: @@ -70,3 +78,4 @@ jobs: run: | nix run ./#publish-kardinal-manager-container nix run ./#publish-kardinal-cli-container + nix run ./#publish-redis-proxy-overlay-container From c2e4d1e174cc24a10008ba05b8a7bb1fe149dc34 Mon Sep 17 00:00:00 2001 From: lostbean Date: Thu, 27 Jun 2024 20:44:21 -0300 Subject: [PATCH 4/5] only publish on main --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67654bfb..6258063d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,6 +75,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Publish images + if: github.ref == 'refs/heads/main' run: | nix run ./#publish-kardinal-manager-container nix run ./#publish-kardinal-cli-container From de3385f6d7c693c53d351bb848be704dc399d8ba Mon Sep 17 00:00:00 2001 From: lostbean Date: Thu, 27 Jun 2024 20:55:09 -0300 Subject: [PATCH 5/5] add dockerhub badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 54c8e88c..dddef398 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[](https://hub.docker.com/u/kurtosistech) + # Kardinal ## Developing instructions