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

build-task --build-arg and --secret-build-arg should support Azure Keyvault #92

Closed
SteveLasker opened this issue Apr 30, 2018 · 1 comment

Comments

@SteveLasker
Copy link
Contributor

Rather than having to pass in static values to build-task create, i'd like to pass in a reference to a keyvault secret.

az acr build-task create \
  -n demo42quotesapi \
  --context https://github.com/demo42/quotes \
  -t demo42/quotes-api:{{.Build.ID}} \
  -f ./src/QuoteService/Dockerfile \
  --git-access-token '{{ .Source=AzureKeyVault \
                        .Vault.Name=$AKV_NAME \
                        .Vault.Secret=$GIT_TOKEN_NAME }}' \
  --build-arg REGISTRY_NAME=$REGISTRY_NAME \
  --secret-build-arg A_CONNECTIONSTRING={{ .Source=AzureKeyVault \
                        .Vault.Name=$AKV_NAME \
                        .Vault.Secret=demo42-quotes-sql-connectionstring-eastus }} \
  --registry $ACR_NAME 
@sajayantony
Copy link
Contributor

KeyVault integration is supported with MSIs for tasks - Azure/azure-cli#9317

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants