File tree Expand file tree Collapse file tree 2 files changed +31
-32
lines changed
Expand file tree Collapse file tree 2 files changed +31
-32
lines changed Original file line number Diff line number Diff line change @@ -21,20 +21,19 @@ jobs:
2121 docker build -t ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }} -t ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.ref_name == 'main' && 'prod' || github.ref_name }}${{ github.ref_name != 'main' && '-latest' || 'latest' }} .
2222 docker push ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }} --all-tags
2323 # This is done as Container Instance
24- # Deploy:
25- # needs: Build
26- # environment:
27- # name: Development
28- # runs-on: ubuntu-latest
29- # steps:
30- # - name: Login to Azure
31- # uses: azure/login@v1
32- # with:
33- # creds: ${{ secrets.TDEI_CORE_AZURE_CREDS }}
34- # - name: Deploy to Dev
35- # uses: azure/webapps-deploy@v2
36- # with:
37- # app-name: ${{ secrets.AZURE_WEBAPP_NAME }}
38- # images: ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }}
39-
40-
24+ Deploy :
25+ needs : Build
26+ environment :
27+ name : Development
28+ runs-on : ubuntu-latest
29+ steps :
30+ - name : Login to Azure
31+ uses : azure/login@v1
32+ with :
33+ creds : ${{ secrets.TDEI_CORE_AZURE_CREDS }}
34+ - name : Deploy to Dev
35+ uses : azure/webapps-deploy@v2
36+ with :
37+ app-name : ${{ secrets.AZURE_WEBAPP_NAME }}
38+ images : ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }}
39+
Original file line number Diff line number Diff line change @@ -21,21 +21,21 @@ jobs:
2121 docker build -t ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }} -t ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.ref_name == 'main' && 'prod' || github.ref_name }}${{ github.ref_name != 'main' && '-latest' || 'latest' }} .
2222 docker push ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }} --all-tags
2323 # This is done as Container Instance
24- # Deploy:
25- # needs: Build
26- # environment:
27- # name: Stage
28- # runs-on: ubuntu-latest
29- # steps:
30- # - name: Login to Azure
31- # uses: azure/login@v1
32- # with:
33- # creds: ${{ secrets.TDEI_CORE_AZURE_CREDS }}
34- # - name: Deploy to Dev
35- # uses: azure/webapps-deploy@v2
36- # with:
37- # app-name: ${{ secrets.AZURE_WEBAPP_NAME }}
38- # images: ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }}
24+ Deploy :
25+ needs : Build
26+ environment :
27+ name : Stage
28+ runs-on : ubuntu-latest
29+ steps :
30+ - name : Login to Azure
31+ uses : azure/login@v1
32+ with :
33+ creds : ${{ secrets.TDEI_CORE_AZURE_CREDS }}
34+ - name : Deploy to Dev
35+ uses : azure/webapps-deploy@v2
36+ with :
37+ app-name : ${{ secrets.AZURE_WEBAPP_NAME }}
38+ images : ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }}
3939
4040
4141
You can’t perform that action at this time.
0 commit comments