@@ -2,43 +2,43 @@ name: Staging
22on :
33 push :
44 branches :
5- - release/2.34 .0
5+ - release/2.35 .0
66
77jobs :
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- 33+ 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