Dagger
Search

azure

This module lets you push a container into acr, automating the tedious manual steps of configuring your local docker daemon with the credentials

For more info and sample usage, check the readme: https://github.com/lukemarsden/dagger-azure

Installation

dagger install github.com/daggerverse/dagger-azure@v0.1.5

Entrypoint

Return Type
Azure
Example
dagger -m github.com/daggerverse/dagger-azure@ce1d338fffd5e3f973a1808b10ac48569c05e104 call \
func (m *myModule) example() *Azure  {
	return dag.
			Azure()
}
@function
def example() -> dag.Azure:
	return (
		dag.azure()
	)
@func()
example(): Azure {
	return dag
		.azure()
}

Types

Azure 🔗

getSecret() 🔗

example usage: “dagger call get-secret –azure-credentials ~/.azure/”

Return Type
String !
Arguments
NameTypeDefault ValueDescription
azureCredentialsDirectory !-No description provided
Example
dagger -m github.com/daggerverse/dagger-azure@ce1d338fffd5e3f973a1808b10ac48569c05e104 call \
 get-secret --azure-credentials DIR_PATH
func (m *myModule) example(ctx context.Context, azureCredentials *Directory) string  {
	return dag.
			Azure().
			GetSecret(ctx, azureCredentials)
}
@function
async def example(azure_credentials: dagger.Directory) -> str:
	return await (
		dag.azure()
		.get_secret(azure_credentials)
	)
@func()
async example(azureCredentials: Directory): Promise<string> {
	return dag
		.azure()
		.getSecret(azureCredentials)
}

withAzureSecret() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
ctrContainer !-No description provided
azureCredentialsDirectory !-No description provided
Example
dagger -m github.com/daggerverse/dagger-azure@ce1d338fffd5e3f973a1808b10ac48569c05e104 call \
 with-azure-secret --ctr IMAGE:TAG --azure-credentials DIR_PATH
func (m *myModule) example(ctr *Container, azureCredentials *Directory) *Container  {
	return dag.
			Azure().
			WithAzureSecret(ctr, azureCredentials)
}
@function
def example(ctr: dagger.Container, azure_credentials: dagger.Directory) -> dagger.Container:
	return (
		dag.azure()
		.with_azure_secret(ctr, azure_credentials)
	)
@func()
example(ctr: Container, azureCredentials: Directory): Container {
	return dag
		.azure()
		.withAzureSecret(ctr, azureCredentials)
}

azureCli() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
azureCredentialsDirectory !-No description provided
Example
dagger -m github.com/daggerverse/dagger-azure@ce1d338fffd5e3f973a1808b10ac48569c05e104 call \
 azure-cli --azure-credentials DIR_PATH
func (m *myModule) example(azureCredentials *Directory) *Container  {
	return dag.
			Azure().
			AzureCli(azureCredentials)
}
@function
def example(azure_credentials: dagger.Directory) -> dagger.Container:
	return (
		dag.azure()
		.azure_cli(azure_credentials)
	)
@func()
example(azureCredentials: Directory): Container {
	return dag
		.azure()
		.azureCli(azureCredentials)
}

acrGetLoginPassword() 🔗

example usage: “dagger call acr-get-login-password –acr-name daggertest –azure-credentials ~/.azure/”

Return Type
String !
Arguments
NameTypeDefault ValueDescription
azureCredentialsDirectory !-No description provided
acrNameString !-No description provided
Example
dagger -m github.com/daggerverse/dagger-azure@ce1d338fffd5e3f973a1808b10ac48569c05e104 call \
 acr-get-login-password --azure-credentials DIR_PATH --acr-name string
func (m *myModule) example(ctx context.Context, azureCredentials *Directory, acrName string) string  {
	return dag.
			Azure().
			AcrGetLoginPassword(ctx, azureCredentials, acrName)
}
@function
async def example(azure_credentials: dagger.Directory, acr_name: str) -> str:
	return await (
		dag.azure()
		.acr_get_login_password(azure_credentials, acr_name)
	)
@func()
async example(azureCredentials: Directory, acrName: string): Promise<string> {
	return dag
		.azure()
		.acrGetLoginPassword(azureCredentials, acrName)
}

acrPushExample() 🔗

Push ubuntu:latest to acr under given repo ‘test’ (repo must be created first) example usage: “dagger call acr-push-example –azure-credentials ~/.azure/credentials –acr-name daggertest –repo test”

Return Type
String !
Arguments
NameTypeDefault ValueDescription
azureCredentialsDirectory !-No description provided
acrNameString !-No description provided
repoString !-No description provided
Example
dagger -m github.com/daggerverse/dagger-azure@ce1d338fffd5e3f973a1808b10ac48569c05e104 call \
 acr-push-example --azure-credentials DIR_PATH --acr-name string --repo string
func (m *myModule) example(ctx context.Context, azureCredentials *Directory, acrName string, repo string) string  {
	return dag.
			Azure().
			AcrPushExample(ctx, azureCredentials, acrName, repo)
}
@function
async def example(azure_credentials: dagger.Directory, acr_name: str, repo: str) -> str:
	return await (
		dag.azure()
		.acr_push_example(azure_credentials, acr_name, repo)
	)
@func()
async example(azureCredentials: Directory, acrName: string, repo: string): Promise<string> {
	return dag
		.azure()
		.acrPushExample(azureCredentials, acrName, repo)
}

acrPush() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
azureCredentialsDirectory !-No description provided
acrNameString !-No description provided
repoString !-No description provided
pushCtrContainer !-No description provided
Example
dagger -m github.com/daggerverse/dagger-azure@ce1d338fffd5e3f973a1808b10ac48569c05e104 call \
 acr-push --azure-credentials DIR_PATH --acr-name string --repo string --push-ctr IMAGE:TAG
func (m *myModule) example(ctx context.Context, azureCredentials *Directory, acrName string, repo string, pushCtr *Container) string  {
	return dag.
			Azure().
			AcrPush(ctx, azureCredentials, acrName, repo, pushCtr)
}
@function
async def example(azure_credentials: dagger.Directory, acr_name: str, repo: str, push_ctr: dagger.Container) -> str:
	return await (
		dag.azure()
		.acr_push(azure_credentials, acr_name, repo, push_ctr)
	)
@func()
async example(azureCredentials: Directory, acrName: string, repo: string, pushCtr: Container): Promise<string> {
	return dag
		.azure()
		.acrPush(azureCredentials, acrName, repo, pushCtr)
}