Skip to content

Commit b6e0fd6

Browse files
authored
Merge pull request #10 from code-review-platform-flow/nginx
feat: nginx 설정 추가
2 parents e6d434e + 326907e commit b6e0fd6

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/nginx.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy Nginx to Kubernetes
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
if: contains(github.event.pull_request.labels.*.name, 'nginx')
11+
name: Deploy Argo CD and Application using Helm and Argo CD
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/[email protected]
17+
18+
- name: Authenticate to Google Cloud
19+
uses: google-github-actions/[email protected]
20+
with:
21+
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
22+
23+
- name: Set up Google Cloud SDK
24+
uses: google-github-actions/[email protected]
25+
with:
26+
project_id: code-review-platform-flow
27+
install_components: kubectl
28+
29+
- name: Get GKE credentials
30+
run: gcloud container clusters get-credentials primary --zone asia-northeast3-a --project code-review-platform-flow
31+
32+
- name: Deploy to Kubernetes
33+
run: kubectl apply -f ./applications/nginx-deployment.yaml

0 commit comments

Comments
 (0)