From 8d5f9096914a2b3ef67be31947c2f5a3429b9aaa Mon Sep 17 00:00:00 2001 From: Sergey Dolin Date: Sat, 11 Nov 2023 23:08:44 +0100 Subject: [PATCH] fix docker login to acr --- .github/workflows/ci.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f905a65..bb4a22b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,22 +93,12 @@ docker tag az-appservice-go ${{ secrets.DOCKER_USERNAME }}/az-appservice-go docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }} docker push ${{ secrets.DOCKER_USERNAME }}/az-appservice-go - - - name: Log in to Azure registry - if: ${{false }} - uses: docker/login-action@v2 - with: - registry: https://akvtraining.azurecr.io/ - username: ${{ secrets.AZURE_REGISTRY_USER }} - password: ${{ secrets.AZURE_REGISTRY_PASSWORD }} - #username: ${{ secrets.AZURE_REGISTRY_ADMIN }} - #password: ${{ secrets.AZURE_REGISTRY_ADMIN_PASSWORD }} - name: Publish to Azure Registry if: ${{ needs.choose-registry.outputs.azureregistry }} run: | docker tag az-appservice-go akvtraining.azurecr.io/az-appservice-go - docker login -u ${{ secrets.AZURE_REGISTRY_USER }} -p ${{ secrets.AZURE_REGISTRY_PASSWORD }} + docker login akvtraining.azurecr.io -u ${{ secrets.AZURE_REGISTRY_USER }} -p ${{ secrets.AZURE_REGISTRY_PASSWORD }} docker push akvtraining.azurecr.io/az-appservice-go deplpoy-to-azure-from-dockerhub: