Skip to content

Commit b4ef510

Browse files
committed
fixed the deployment file
1 parent 121a7e6 commit b4ef510

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

.github/workflows/dotnet.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -47,34 +47,34 @@ jobs:
4747
body: body
4848
});
4949
50-
dockerBuildPush:
51-
runs-on: ubuntu-latest
52-
needs: build
50+
dockerBuildPush:
51+
runs-on: ubuntu-latest
52+
needs: build
5353

54-
steps:
55-
- uses: actions/checkout@v3
54+
steps:
55+
- uses: actions/checkout@v3
5656

57-
- name: Docker Login
58-
# You may pin to the exact commit or the version.
59-
# uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
60-
uses: docker/[email protected]
61-
with:
62-
# Server address of Docker registry. If not set then will default to Docker Hub
63-
registry: ${{ secrets.ACR_LOGIN_SERVER }}
64-
# Username used to log against the Docker registry
65-
username: ${{ secrets.ACR_USERNAME }}
66-
# Password or personal access token used to log against the Docker registry
67-
password: ${{ secrets.ACR_PASSWORD }}
68-
# Log out from the Docker registry at the end of a job
69-
logout: true
57+
- name: Docker Login
58+
# You may pin to the exact commit or the version.
59+
# uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
60+
uses: docker/[email protected]
61+
with:
62+
# Server address of Docker registry. If not set then will default to Docker Hub
63+
registry: ${{ secrets.ACR_LOGIN_SERVER }}
64+
# Username used to log against the Docker registry
65+
username: ${{ secrets.ACR_USERNAME }}
66+
# Password or personal access token used to log against the Docker registry
67+
password: ${{ secrets.ACR_PASSWORD }}
68+
# Log out from the Docker registry at the end of a job
69+
logout: true
7070

71-
- name: Docker Build
72-
run: docker build -t $registryName/$repositoryName:$tag --build-arg build_version=$tag $dockerFolderPath
71+
- name: Docker Build
72+
run: docker build -t $registryName/$repositoryName:$tag --build-arg build_version=$tag $dockerFolderPath
7373

74-
- name: Docker Push
75-
run: docker push $registryName/$repositoryName:$tag
74+
- name: Docker Push
75+
run: docker push $registryName/$repositoryName:$tag
7676

77-
deploy-to-dev:
77+
deploy-to-dev:
7878

7979
runs-on: ubuntu-latest
8080
needs: dockerBuildPush
@@ -91,7 +91,7 @@ jobs:
9191
- uses: azure/webapps-deploy@v2
9292
with:
9393
app-name: 'jo37jiy66vx2y-dev'
94-
images: {your_registry_name}.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}}
94+
images: jo37jiy66vx2ympnpreg.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}}
9595

9696
deploy-to-test:
9797

@@ -112,7 +112,7 @@ jobs:
112112
- uses: azure/webapps-deploy@v2
113113
with:
114114
app-name: 'jo37jiy66vx2y-test'
115-
images: {your_registry_name}.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}}
115+
images: jo37jiy66vx2ympnpreg.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}}
116116

117117
deploy-to-prod:
118118

0 commit comments

Comments
 (0)