-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat(publish): set aptly Origin + Label #59
base: main
Are you sure you want to change the base?
Conversation
This PR has been automatically labelled "stale" because it hasn't had recent activity. /cc @aspleenic |
@amyblias Who might be able to review this PR? |
@caugner thanks for your contribution and apologies for the delay. I can take a look |
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.
lgtm
@@ -4,6 +4,8 @@ set -xeuo pipefail | |||
release=$1 | |||
opt=${2:-false} | |||
nightly=false | |||
origin="Mattermost" |
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.
Is it possible to fetch origin
and label
from arguments and make them mandatory?
So that we can distinguish packages by origin. As Mattermost we may want to set origin from CI/CD pipeline to determine officially generated packages. And for anyone who builds and publish to their own repository, they may want to use different origin and label value.
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.
pretty good point yes
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.
Is it possible to fetch
origin
andlabel
from arguments and make them mandatory?
Currently, the script takes two parameters:
- release
- (optional) opt
Should origin and label be mandatory parameters 2 and 3 as follows:
- release
- origin
- label
- (optional) opt
Or might you prefer to facilitate environment variables APT_RELEASE
, APT_ORIGIN
and APT_LABEL
for this? The script could still fail if those are not set.
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.
Thank you very much, using enviroment veriables is great idea.
And since we will have multiple parameters, using environment variables will increase readability and flexibility.
./sync-and-publish bionic "Mattermost" "Mattermost Omnibus" --nightly
-vs-
APT_RELEASE="bionic" APT_ORIGIN="Mattermost" APT_LABEL="Mattermost Omnibus" ./sync-and-publish --nightly
It will be nice to use Environment variables and both of them are okay.
Fixes #58.