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

acr-build to support Date as a build-arg #94

Closed
SteveLasker opened this issue May 1, 2018 · 6 comments
Closed

acr-build to support Date as a build-arg #94

SteveLasker opened this issue May 1, 2018 · 6 comments

Comments

@SteveLasker
Copy link
Contributor

Would like to use various date formats in build args, or for image tags

az acr build-task create \
  -n myBuildTask \
  --context https://github.com/demo42/deploy \
  -t baseimages/microsoft/dotnet-sdk:linux-2.1 \
  --build-arg IMAGE_BUILD_DATE=`date +%Y%m%d-%H%M%S` 
@ehotinger
Copy link
Contributor

ehotinger commented Jul 9, 2018

@sajayantony
Copy link
Contributor

@ehotinger - has this been deployed already?

@ehotinger
Copy link
Contributor

@sajayantony nope, deploy to dogfood this Thursday.

@ehotinger
Copy link
Contributor

@SteveLas + @sajayantony FYI this change is globally available as of last Friday ({{.Build.Date}}). However, it should be noted that we're actively changing this to .Run.Date, so nobody should keep a dependency on .Build.Date, and this isn't available for Windows builds.

@SteveLasker
Copy link
Contributor Author

Thanks Eric, good to know about the change to Run.

@sajayantony
Copy link
Contributor

Closing since we are moving to tasks

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

No branches or pull requests

3 participants