Skip to content

Commit

Permalink
fix docker login to acr
Browse files Browse the repository at this point in the history
  • Loading branch information
dsame authored Nov 11, 2023
1 parent 34e2880 commit 8d5f909
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8d5f909

Please sign in to comment.