Skip to content

Commit b45e5fb

Browse files
authored
Merge pull request #33 from TaskarCenterAtUW/feature-1704
Fixed Issue-1704
2 parents 2d034fb + 953eb6d commit b45e5fb

File tree

2 files changed

+31
-32
lines changed

2 files changed

+31
-32
lines changed

.github/workflows/dev_workflow.yaml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff 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+

.github/workflows/stage_workflow.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)