Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Commit 1f9e062

Browse files
authored
Merge pull request #199 from Azure/s-tuli/CleanUpWorkflows
Fix bug with ingress host for gateway service
2 parents e705567 + cbe9a12 commit 1f9e062

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/bikes.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
build:
12-
runs-on: ubuntu-16.04
12+
runs-on: ubuntu-latest
1313
steps:
1414

1515
- uses: actions/checkout@master
@@ -48,12 +48,11 @@ jobs:
4848

4949
- name: Helm Install PR
5050
run: |
51+
helm init --upgrade --wait
5152
helm upgrade --install --namespace $GITHUB_HEAD_REF bikesharing-$GITHUB_HEAD_REF samples/BikeSharingApp/Bikes/charts/bikes \
5253
--set image.repository=${{ secrets.CONTAINER_REGISTRY }}/bikes \
5354
--set image.tag=$GITHUB_SHA \
54-
--set imagePullSecrets[0].name=${{ secrets.IMAGE_PULL_SECRET }} \
55-
--set ingress.hosts[0]=$GITHUB_HEAD_REF.s.${{ secrets.MASTER_SPACE }}.bikesharing.${{ secrets.HOST_SUFFIX }} \
56-
--set ingress.annotations.kubernetes\\.io/ingress\\.class=traefik-azds
55+
--set imagePullSecrets[0].name=${{ secrets.IMAGE_PULL_SECRET }}
5756
5857
- uses: azure/dev-spaces/actions/add-review-url@Releases/v1
5958
with:

.github/workflows/bikesharing.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
build:
13-
runs-on: ubuntu-16.04
13+
runs-on: ubuntu-latest
1414
steps:
1515

1616
- uses: actions/checkout@master
@@ -61,6 +61,7 @@ jobs:
6161
cd samples/BikeSharingApp/charts
6262
helm init --client-only
6363
helm dependency update
64+
helm init --upgrade --wait
6465
helm upgrade --install --namespace ${{ secrets.MASTER_SPACE }} bikesharing . \
6566
--set bikes.image.repository=${{ secrets.CONTAINER_REGISTRY }}/bikes \
6667
--set bikes.imagePullSecrets[0].name=${{ secrets.IMAGE_PULL_SECRET }} \
@@ -76,7 +77,7 @@ jobs:
7677
--set gateway.image.repository=${{ secrets.CONTAINER_REGISTRY }}/gateway \
7778
--set gateway.imagePullSecrets[0].name=${{ secrets.IMAGE_PULL_SECRET }} \
7879
--set gateway.image.tag=$GITHUB_SHA \
79-
--set gateway.ingress.hosts[0]=${{ secrets.HOST }} \
80+
--set gateway.ingress.hosts[0]=${{ secrets.MASTER_SPACE }}.gateway.${{ secrets.HOST_SUFFIX }} \
8081
--set gateway.ingress.annotations.kubernetes\\.io/ingress\\.class=traefik-azds \
8182
--set reservation.image.repository=${{ secrets.CONTAINER_REGISTRY }}/reservation \
8283
--set reservation.imagePullSecrets[0].name=${{ secrets.IMAGE_PULL_SECRET }} \

0 commit comments

Comments
 (0)