Skip to content

Commit

Permalink
Update main action for ACR
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik10a authored Jan 13, 2024
1 parent 07eb6e5 commit 3369405
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ jobs:
- name: Login to Azure Container Registry
uses: azure/docker-login@v1
with:
login-server: acr0dev.azurecr.io
identity: 'managed' # Use 'managed' to indicate that you're using a managed identity
login-server: ${{ secrets.ACR_ENDPOINT }}
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}

- name: Push Docker image to ACR
run: |
docker buildx create --use
docker buildx inspect
docker push acr0dev.azurecr.io/next-hello-world:${CURRENT_DATE} .
docker push ${{ secrets.ACR_ENDPOINT }}/next-hello-world:${CURRENT_DATE} .

0 comments on commit 3369405

Please sign in to comment.