Skip to content

Commit

Permalink
fix(makefile): confmap creation
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamad-liyaghi committed Apr 7, 2024
1 parent f0c33d7 commit 0aadeda
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_posts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:

- name: Create ConfigMap
working-directory: services/posts/
run: make create-configmap
run: make confmap

- name: Run Kubernetes Deployments
run: kubectl apply -f k8s/posts/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_users.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:

- name: Create ConfigMap
working-directory: services/users/
run: make create-configmap
run: make confmap

- name: Run Kubernetes Deployments
run: kubectl apply -f k8s/users/
Expand Down
6 changes: 3 additions & 3 deletions services/posts/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.PHONY: help build run stop create-confmap
.PHONY: help build run stop confmap

help:
@echo "Available targets:"
@echo " help - Show this help message."
@echo " build - Build the docker image."
@echo " run - Run the docker container."
@echo " stop - Stop the docker container."
@echo " create-confmap - Create a configmap for the posts service."
@echo " confmap - Create a configmap for the posts service."

build:
docker compose build
Expand All @@ -21,5 +21,5 @@ endif
stop:
docker compose down

create-confmap:
confmap:
kubectl create configmap jobhunt-posts-env --from-env-file=.env

0 comments on commit 0aadeda

Please sign in to comment.