Skip to content

Commit 953eb6d

Browse files
committed
Fixed indentation
1 parent 02e8138 commit 953eb6d

File tree

2 files changed

+53
-54
lines changed

2 files changed

+53
-54
lines changed
Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
pull_request:
3-
branches: [ dev ]
3+
branches: [dev]
44
types:
55
- closed
66
workflow_dispatch:
@@ -20,21 +20,20 @@ jobs:
2020
run: |
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
23-
# This is done as Container Instance
23+
# This is done as Container Instance
2424
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-
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+
Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
on:
2-
pull_request:
3-
branches: [ stage ]
4-
types:
5-
- closed
6-
workflow_dispatch:
2+
pull_request:
3+
branches: [stage]
4+
types:
5+
- closed
6+
workflow_dispatch:
77
jobs:
8-
Build:
9-
environment: Stage
10-
runs-on: ubuntu-latest
11-
if: github.event.pull_request.merged == true
12-
steps:
13-
- uses: actions/checkout@v2
14-
- uses: azure/docker-login@v1
15-
with:
16-
login-server: ${{secrets.REGISTRY_DOMAIN}}
17-
username: ${{secrets.REGISTRY_USERNAME}}
18-
password: ${{secrets.REGISTRY_PASSWORD}}
19-
- name: Publish image to Azure Registrty
20-
run: |
21-
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' }} .
22-
docker push ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }} --all-tags
23-
# 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 }}
8+
Build:
9+
environment: Stage
10+
runs-on: ubuntu-latest
11+
if: github.event.pull_request.merged == true
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: azure/docker-login@v1
15+
with:
16+
login-server: ${{secrets.REGISTRY_DOMAIN}}
17+
username: ${{secrets.REGISTRY_USERNAME}}
18+
password: ${{secrets.REGISTRY_PASSWORD}}
19+
- name: Publish image to Azure Registrty
20+
run: |
21+
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' }} .
22+
docker push ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }} --all-tags
23+
# 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 }}
3939

4040

4141

0 commit comments

Comments
 (0)