Fix failing build caused by missing index param (#246) #185
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: WebApp Docker Image | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Docker Login | |
uses: docker/[email protected] | |
with: | |
registry: fruoccopublic.azurecr.io | |
username: fruoccopublic | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- uses: actions/checkout@v4 | |
- name: Build the Docker image | |
run: | |
docker pull fruoccopublic.azurecr.io/rag-webapp:latest || true; | |
docker build . --file docker/WebApp.Dockerfile --cache-from fruoccopublic.azurecr.io/rag-webapp:latest --tag fruoccopublic.azurecr.io/rag-webapp:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER; | |
docker tag fruoccopublic.azurecr.io/rag-webapp:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER fruoccopublic.azurecr.io/rag-webapp:latest; | |
docker push fruoccopublic.azurecr.io/rag-webapp:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER; | |
docker push fruoccopublic.azurecr.io/rag-webapp:latest; |