Skip to content

Commit

Permalink
Push module to local registry
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed Nov 3, 2023
1 parent 2a922ea commit 42f3d9a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ up: # Start a local Kind clusters and a container registry on port 5555
down: # Teardown the Kind cluster and registry
$(REPOSITORY_ROOT)/scripts/kind-down.sh

.PHONY: push
.PHONY: flux-up
flux-up: # Install Flux on the local cluster
$(REPOSITORY_ROOT)/scripts/flux-install.sh

.PHONY: timoni-push
timoni-push: # Push modules to the local registry
$(REPOSITORY_ROOT)/scripts/timoni-push.sh

.PHONY: help
help: ## Display this help menu
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-20s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
7 changes: 7 additions & 0 deletions scripts/timoni-push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -o errexit

repo_root=$(git rev-parse --show-toplevel)

timoni mod push $repo_root/timoni/modules/flux-hr-bench oci://localhost:5555/modules/flux-hr-bench -v 1.0.0

0 comments on commit 42f3d9a

Please sign in to comment.