Amending changes from @TomChv
Signed-off-by: Sujay Pillai <sujayopillai@gmail.com>
This commit is contained in:
parent
d74753bca7
commit
a99fc52eeb
@ -35,14 +35,14 @@ let defaultVersion = "2.27.1@sha256:1e117183100c9fce099ebdc189d73e506e7b02d2b73d
|
||||
image: docker.#Pull & {
|
||||
from: "mcr.microsoft.com/azure-cli:\(version)"
|
||||
}
|
||||
|
||||
|
||||
always: true
|
||||
|
||||
command: """
|
||||
az login --service-principal -u "$(cat /run/secrets/appId)" -p "$(cat /run/secrets/password)" -t "$(cat /run/secrets/tenantId)"
|
||||
az account set -s "$(cat /run/secrets/subscriptionId)"
|
||||
"""
|
||||
|
||||
|
||||
secret: {
|
||||
"/run/secrets/appId": config.appId
|
||||
"/run/secrets/password": config.password
|
||||
|
@ -33,7 +33,7 @@ import (
|
||||
"""
|
||||
|
||||
env: {
|
||||
AZURE_DEFAULTS_GROUP: rgName
|
||||
AZURE_DEFAULTS_GROUP: rgName
|
||||
AZURE_DEFAULTS_LOCATION: rgLocation
|
||||
}
|
||||
}
|
||||
@ -41,8 +41,8 @@ import (
|
||||
// Resource Id
|
||||
id: ({
|
||||
os.#File & {
|
||||
from: ctr
|
||||
path: "/resourceGroupId"
|
||||
}
|
||||
from: ctr
|
||||
path: "/resourceGroupId"
|
||||
}
|
||||
}).contents
|
||||
}
|
||||
|
Reference in New Issue
Block a user