From d10a18821295c23f1513e50b767555eabdc36ad7 Mon Sep 17 00:00:00 2001 From: Will Usher Date: Fri, 29 Nov 2024 09:28:38 +0100 Subject: [PATCH] Try again with registry deployment --- ...toDeployTrigger-e28b75b7-c869-4c24-ae9a-34f7c9ff21be.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/research-index-AutoDeployTrigger-e28b75b7-c869-4c24-ae9a-34f7c9ff21be.yml b/.github/workflows/research-index-AutoDeployTrigger-e28b75b7-c869-4c24-ae9a-34f7c9ff21be.yml index e3f6cdf..32c292a 100644 --- a/.github/workflows/research-index-AutoDeployTrigger-e28b75b7-c869-4c24-ae9a-34f7c9ff21be.yml +++ b/.github/workflows/research-index-AutoDeployTrigger-e28b75b7-c869-4c24-ae9a-34f7c9ff21be.yml @@ -39,10 +39,11 @@ jobs: with: push: true tags: index.docker.io/${{ secrets.AzureAppService_ContainerUsername_dce678b65c414723a5c407473fe6c430 }}/ccg-research-index:${{ github.sha }} - file: ./Dockerfile + file: Dockerfile deploy: runs-on: ubuntu-latest + needs: build permissions: id-token: write #This is required for requesting the OIDC JWT Token contents: read #Required when GH token is used to authenticate with private repo @@ -58,8 +59,9 @@ jobs: - name: Push container image to registry uses: azure/container-apps-deploy-action@v2 with: + imageToBuild: index.docker.io/research-index:${{ github.sha }} + registryUrl: index.docker.io registryUsername: ${{ secrets.RESEARCHINDEX_REGISTRY_USERNAME }} registryPassword: ${{ secrets.RESEARCHINDEX_REGISTRY_PASSWORD }} containerAppName: research-index resourceGroup: ccg_research_index - imageToDeploy: index.docker.io/research-index:${{ github.sha }}