Skip to content

Commit b019c65

Browse files
authored
Refactor GitHub Actions workflow for Azure deployment
Updated Docker registry secrets and cleaned up comments.
1 parent 135059f commit b019c65

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/main_andre-emotion-app.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,16 @@ jobs:
2525
uses: docker/login-action@v2
2626
with:
2727
registry: index.docker.io
28-
username: ${{ secrets.AZUREAPPSERVICE_CONTAINERUSERNAME_752189E51E5B4EE797824E0BDFB8CD74 }}
29-
password: ${{ secrets.AZUREAPPSERVICE_CONTAINERPASSWORD_718D79856B7846EE8C32B4915B556204 }}
30-
28+
username: ${{ secrets.DOCKER_USERNAME }}
29+
password: ${{ secrets.DOCKER_TOKEN }}
30+
3131
- name: Build and push container image to registry
3232
uses: docker/build-push-action@v3
3333
with:
3434
context: .
3535
push: true
36-
tags: index.docker.io/${{ secrets.AZUREAPPSERVICE_CONTAINERUSERNAME_752189E51E5B4EE797824E0BDFB8CD74 }}/emotion-app:${{ github.sha }}
36+
tags: index.docker.io/${{ secrets.DOCKER_USERNAME }}/emotion-app:${{ github.sha }}
3737
file: ./Dockerfile
38-
3938
deploy:
4039
runs-on: ubuntu-latest
4140
permissions:
@@ -59,8 +58,9 @@ jobs:
5958
with:
6059
app-name: 'andre-emotion-app'
6160
slot-name: 'Production'
62-
images: 'index.docker.io/${{ secrets.AZUREAPPSERVICE_CONTAINERUSERNAME_752189E51E5B4EE797824E0BDFB8CD74 }}/emotion-app:${{ github.sha }}'
61+
images: 'index.docker.io/${{ secrets.DOCKER_USERNAME }}/emotion-app:${{ github.sha }}'
6362

6463

6564

6665

66+

0 commit comments

Comments
 (0)