Skip to content

Commit 507daa7

Browse files
Merge pull request #920 from kishangupta4514/update-workflow
update the branch in yml file
2 parents cc34cdf + 4907107 commit 507daa7

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

.github/workflows/staging.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,43 @@ name: Staging
22
on:
33
push:
44
branches:
5-
- release/2.34.0
5+
- release/2.35.0
66

77
jobs:
8-
build:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@master
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
1212

13-
- uses: Azure/docker-login@v1
14-
with:
15-
login-server: sparrowprod.azurecr.io
16-
username: ${{ secrets.REGISTRY_USERNAME }}
17-
password: ${{ secrets.REGISTRY_PASSWORD }}
13+
- uses: Azure/docker-login@v1
14+
with:
15+
login-server: sparrowprod.azurecr.io
16+
username: ${{ secrets.REGISTRY_USERNAME }}
17+
password: ${{ secrets.REGISTRY_PASSWORD }}
1818

19-
- run: |
20-
docker build . -t sparrowprod.azurecr.io/sparrow-api:${{ github.run_number }} --build-arg GITHUB_TOKEN=${{ secrets.SPARROW_GITHUB_TOKEN }}
21-
docker push sparrowprod.azurecr.io/sparrow-api:${{ github.run_number }}
22-
deploy:
23-
needs: build
24-
runs-on: ubuntu-latest
25-
steps:
26-
- uses: actions/checkout@master
27-
- uses: richardrigutins/replace-in-files@v1
28-
with:
29-
files: "./deploymentManifests/deployment.yml"
30-
search-text: '_BUILD__ID_'
31-
replacement-text: '${{ github.run_number }}'
19+
- run: |
20+
docker build . -t sparrowprod.azurecr.io/sparrow-api:${{ github.run_number }} --build-arg GITHUB_TOKEN=${{ secrets.SPARROW_GITHUB_TOKEN }}
21+
docker push sparrowprod.azurecr.io/sparrow-api:${{ github.run_number }}
22+
deploy:
23+
needs: build
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@master
27+
- uses: richardrigutins/replace-in-files@v1
28+
with:
29+
files: "./deploymentManifests/deployment.yml"
30+
search-text: "_BUILD__ID_"
31+
replacement-text: "${{ github.run_number }}"
3232

33-
- uses: azure/[email protected]
33+
- uses: azure/[email protected]
3434

35-
- uses: Azure/k8s-set-context@v2
36-
with:
37-
kubeconfig: ${{ secrets.KUBE_CONFIG }}
35+
- uses: Azure/k8s-set-context@v2
36+
with:
37+
kubeconfig: ${{ secrets.KUBE_CONFIG }}
3838

39-
- uses: Azure/k8s-deploy@v4
40-
with:
41-
action: deploy
42-
namespace: sparrow-staging
43-
manifests: |
44-
./deploymentManifests/deployment.yml
39+
- uses: Azure/k8s-deploy@v4
40+
with:
41+
action: deploy
42+
namespace: sparrow-staging
43+
manifests: |
44+
./deploymentManifests/deployment.yml

0 commit comments

Comments
 (0)