Skip to content

Commit

Permalink
Remove az extension add for ACR build (#461)
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Hotinger <erhoting@microsoft.com>
  • Loading branch information
ehotinger authored and technosophos committed May 24, 2018
1 parent a1c272c commit 1dbecc7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions brigade.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ function acrBuild(e, project, tag) {
var builder = new Job("az-build", "microsoft/azure-cli:latest")
builder.storage.enabled = true;
builder.tasks = [
// When the extension is included by default, we can remove this.
"az extension add --source https://acrbuild.blob.core.windows.net/cli/acrbuildext-0.0.4-py2.py3-none-any.whl -y",
// Create a service principal and assign it proper perms on the ACR.
`az login --service-principal -u ${project.secrets.acrName} -p '${project.secrets.acrToken}' --tenant ${project.secrets.acrTenant}`,
`cd /src`,
Expand All @@ -191,8 +189,7 @@ function acrBuild(e, project, tag) {
`cd ${i}`,
`echo '========> Building ${i}'`,
`cp -av /mnt/brigade/share/${i}/rootfs ./rootfs`,
// Currently, it appears this is the only way to add two tags.
`az acr build -r ${registry} -t ${imgName} -t ${latest} --context .`,
`az acr build -r ${registry} -t ${imgName} -t ${latest} .`,
`echo '<======== Finished ${i}'`,
`cd ..`
);
Expand Down

0 comments on commit 1dbecc7

Please sign in to comment.