-
Notifications
You must be signed in to change notification settings - Fork 557
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
chore: restore install.ps1 #7050
Conversation
.goreleaser.yml
Outdated
- name: publish-install-sh | ||
cmd: sh -c "aws s3 cp install.sh s3://{{ .Env.AWS_BUCKET }}/dagger/install.sh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I can tell, there's currently no automation for this right now? This is what prevented install.ps1
from being updated in the docs in the first place.
If so, I think this is the right way to do it, we should have goreleaser release the install script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do this manually because we need to invalidate CloudFront too. FTR:
If we want to do this properly, we should add it as a function - follow-up to:
If we want to do this quick & dirty, we need to also invalidate CloudFront. Relevant past comments:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good! Hadn't realized that, I've updated the RELEASING guide to include info about doing this.
install.ps1
Outdated
@" | ||
--------------------------------------------------------------------------------- | ||
Author: Alessandro Festa | ||
Co Author: Brittan DeYoung | ||
Dagger Installation Utility for Windows users | ||
--------------------------------------------------------------------------------- | ||
"@ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about keeping this, none of our other install scripts or tools have author names like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a commit to convert this author block to a comment instead of it being output on every execution.
67c6658
to
350d7b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If others can confirm infra side, let's ship it!
.goreleaser.yml
Outdated
- name: publish-install-sh | ||
cmd: sh -c "aws s3 cp install.sh s3://{{ .Env.AWS_BUCKET }}/dagger/install.sh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Author: Alessandro Festa | ||
# Co Author: Brittan DeYoung | ||
# Dagger Installation Utility for Windows users | ||
# --------------------------------------------------------------------------------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This script works fine for me. Now just need the dagger.exe
that it downloads to give some output. That's the other PR :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Justin Chadwell <me@jedevc.com>
Signed-off-by: Jeremy Adams <jeremy@dagger.io>
Signed-off-by: Justin Chadwell <me@jedevc.com>
d321152
to
6745fd2
Compare
Merging this since the script looks good - even if this ends up wrong, we can also update this on S3 async to our release process. |
* chore: restore install.ps1 Signed-off-by: Justin Chadwell <me@jedevc.com> * chore: Make author block comment instead of stdout Signed-off-by: Jeremy Adams <jeremy@dagger.io> * chore: update RELEASING to mention install scripts Signed-off-by: Justin Chadwell <me@jedevc.com> --------- Signed-off-by: Justin Chadwell <me@jedevc.com> Signed-off-by: Jeremy Adams <jeremy@dagger.io> Co-authored-by: Jeremy Adams <jeremy@dagger.io>
Fix #6901.
This script was removed in 5a9c772, and we still have windows install instructions, so we should probably restore this!
I've also updated the script with a few additions, like making the function names map to the same as the unix script.