Skip to content

Commit e3068cd

Browse files
authoredJun 20, 2023
Create deploy.yml
1 parent 87a688f commit e3068cd

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
 

‎.github/workflows/deploy.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: eShop deploy
2+
3+
on:
4+
push:
5+
paths:
6+
- 'deploy/k8s/helm-simple/coupon/*'
7+
branches: [ main ]
8+
9+
jobs:
10+
deploy-to-aks:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Azure Login
14+
uses: azure/login@v1.4.5
15+
with:
16+
creds: ${{ secrets.AZURE_CREDENTIALS }}
17+
18+
- name: Azure Kubernetes set context
19+
uses: Azure/aks-set-context@v2
20+
with:
21+
resource-group: 'eshop-learn-rg'
22+
cluster-name: 'eshop-learn-aks'
23+
24+
- name: Get code from the repository
25+
uses: actions/checkout@v3
26+
with:
27+
ref: main
28+
29+
- name: Helm tool installer
30+
uses: Azure/setup-helm@v1
31+
32+
- name: Deploy
33+
run: >
34+
helm upgrade
35+
--install eshoplearn-coupon
36+
--namespace=default
37+
--set registry=${{ secrets.REGISTRY_LOGIN_SERVER }}
38+
--set imagePullPolicy=Always
39+
--set host=${{ secrets.IP_ADDRESS }}
40+
--set protocol=http './deploy/k8s/helm-simple/coupon'

0 commit comments

Comments
 (0)
Please sign in to comment.