@@ -20,10 +20,28 @@ jobs:
2020 steps :
2121 - name : Checkout
2222 uses : actions/checkout@v2
23- - name : Build Docker Image
24- run : docker build --no-cache --build-arg app_version=1.0.$GITHUB_RUN_NUMBER --build-arg source_version=$GITHUB_SHA -t pia/azure-aisearch-webapp:latest -f ./src/Azure.AISearch.WebApp/Dockerfile ./src/Azure.AISearch.WebApp
25- - name : Push Docker Image to GitHub
26- run : |
27- echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
28- docker tag pia/azure-aisearch-webapp:latest ghcr.io/pia/azure-aisearch-webapp:latest
29- docker push ghcr.io/pia/azure-aisearch-webapp:latest
23+ # - name: Build Docker Image
24+ # run: docker build --no-cache --build-arg app_version=1.0.$GITHUB_RUN_NUMBER --build-arg source_version=$GITHUB_SHA -t pia/azure-aisearch-webapp:latest -f ./src/Azure.AISearch.WebApp/Dockerfile ./src/Azure.AISearch.WebApp
25+ # - name: Push Docker Image to GitHub
26+ # run: |
27+ # echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
28+ # docker tag pia/azure-aisearch-webapp:latest ghcr.io/pia/azure-aisearch-webapp:latest
29+ # docker push ghcr.io/pia/azure-aisearch-webapp:latest
30+
31+ - name : Log in to registry
32+ uses : docker/login-action@v2
33+ with :
34+ registry : https://index.docker.io/v1/
35+ username : ${{ secrets.DOCKER_USERNAME }}
36+ password : ${{ secrets.DOCKER_TOKEN }}
37+
38+ - name : Build and push agent-service container image to registry
39+ uses : docker/build-push-action@v3
40+ with :
41+ context : ./src/Azure.AISearch.WebApp
42+ push : true
43+ tags : index.docker.io/${{ secrets.DOCKER_USERNAME }}/azure-aisearch-webapp:latest
44+ file : ./src/Azure.AISearch.WebApp/Dockerfile
45+ build-args : |
46+ app_version=1.0.$GITHUB_RUN_NUMBER
47+ source_version=$GITHUB_SHA
0 commit comments