Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Azure Container Registry #199

Open
tomoyamachi opened this issue Oct 11, 2022 · 1 comment
Open

Support Azure Container Registry #199

tomoyamachi opened this issue Oct 11, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@tomoyamachi
Copy link
Collaborator

#195
#198

@tomoyamachi tomoyamachi added the enhancement New feature or request label Oct 11, 2022
@tomoyamachi tomoyamachi self-assigned this Feb 12, 2023
@olafurnielsen
Copy link

olafurnielsen commented May 20, 2023

I'm using GitHub Actions and using azure/docker-login with service principal auth prior to Dockle and that works fine when referencing a remote image in ACR. Maybe there's a similar action ADO users could take (#195 #198).

Haven't confirmed but using az cli is probably enough:

az acr login -n MyRegistry
# Get an Azure Container Registry access token
# az acr login -n MyRegistry --expose-token

But an implementation for ACR similar to what you have for AWS and GCP would be nice.

This is what I use for GitHub Actions:

    steps:
      - name: Logon to Azure ACR
        uses: azure/docker-login@v1
        with:
          login-server: ${{ vars.ACR_REGISTRY }}
          username: ${{ secrets.ACR_SERVICEPRINCIPAL }}
          password: ${{ secrets.ACR_SERVICEPRINCIPAL_PASSWORD }}

      - name: Run Dockle
        uses: goodwithtech/dockle-action@main
        with:
          image: '${{ vars.ACR_REGISTRY }}/<your_image>:${{ needs.build.outputs.version }}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants