Skip to content

Commit

Permalink
Move cluster zone and name to secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlyJazz committed Dec 10, 2023
1 parent 0666631 commit 3505c1c
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 22 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/aggregated-messages-consumer-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
- 'aggregated-messages-consumer/**'

env:
GKE_CLUSTER: chat3-407706-gke
GKE_ZONE: us-central1
IMAGE: charlyjazz/amc
K8_DIR: aggregated-messages-consumer/k8s

Expand Down Expand Up @@ -39,8 +37,8 @@ jobs:

- uses: google-github-actions/get-gke-credentials@v1
with:
cluster_name: ${{ env.GKE_CLUSTER }}
location: ${{ env.GKE_ZONE }}
cluster_name: ${{ secrets.GKE_CLUSTER }}
location: ${{ secrets.GKE_ZONE }}

- name: Log in to Docker Hub
uses: docker/login-action@v3
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/auth-microservice-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
- 'auth-microservice/**'

env:
GKE_CLUSTER: chat3-407706-gke
GKE_ZONE: us-central1
IMAGE: charlyjazz/auth-microservice
K8_DIR: auth-microservice/k8s

Expand Down Expand Up @@ -39,8 +37,8 @@ jobs:

- uses: google-github-actions/get-gke-credentials@v1
with:
cluster_name: ${{ env.GKE_CLUSTER }}
location: ${{ env.GKE_ZONE }}
cluster_name: ${{ secrets.GKE_CLUSTER }}
location: ${{ secrets.GKE_ZONE }}

- name: Log in to Docker Hub
uses: docker/login-action@v3
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/camel-microservice-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
- 'apache-camel-service-bus/**'

env:
GKE_CLUSTER: chat3-407706-gke
GKE_ZONE: us-central1
IMAGE: charlyjazz/apache-camel-microservice
K8_DIR: apache-camel-service-bus/k8s

Expand Down Expand Up @@ -39,8 +37,8 @@ jobs:

- uses: google-github-actions/get-gke-credentials@v1
with:
cluster_name: ${{ env.GKE_CLUSTER }}
location: ${{ env.GKE_ZONE }}
cluster_name: ${{ secrets.GKE_CLUSTER }}
location: ${{ secrets.GKE_ZONE }}

- name: Log in to Docker Hub
uses: docker/login-action@v3
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/chat-microservice-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
- 'chat-microservice/**'

env:
GKE_CLUSTER: chat3-407706-gke
GKE_ZONE: us-central1
IMAGE: charlyjazz/chat-microservice
K8_DIR: chat-microservice/k8s

Expand Down Expand Up @@ -39,8 +37,8 @@ jobs:

- uses: google-github-actions/get-gke-credentials@v1
with:
cluster_name: ${{ env.GKE_CLUSTER }}
location: ${{ env.GKE_ZONE }}
cluster_name: ${{ secrets.GKE_CLUSTER }}
location: ${{ secrets.GKE_ZONE }}

- name: Log in to Docker Hub
uses: docker/login-action@v3
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/frontend-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
- 'frontend-web/**'

env:
GKE_CLUSTER: chat3-407706-gke
GKE_ZONE: us-central1
IMAGE: charlyjazz/frontend-web
K8_DIR: frontend-web/k8s

Expand Down Expand Up @@ -39,8 +37,8 @@ jobs:

- uses: google-github-actions/get-gke-credentials@v1
with:
cluster_name: ${{ env.GKE_CLUSTER }}
location: ${{ env.GKE_ZONE }}
cluster_name: ${{ secrets.GKE_CLUSTER }}
location: ${{ secrets.GKE_ZONE }}

- name: Log in to Docker Hub
uses: docker/login-action@v3
Expand Down
2 changes: 1 addition & 1 deletion auth-microservice/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ Let imagine `ec4942c811fe` is the container ID (`docker ps` will show you what i

## Testing Deploy to K8:

- 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19
- 1
2 changes: 1 addition & 1 deletion chat-microservice/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ Run a specific test case

## GKE Tests

- 1, 2, 3
- 1

0 comments on commit 3505c1c

Please sign in to comment.