-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add script to create and upload GCP deployment packages to bucket #139
Conversation
Signed-off-by: Sayan Chowdhury <[email protected]>
FLATCAR_GCP_DEPLOYMENT_PACKAGE=${FLATCAR_GCP_DEPLOYMENT_PACKAGE:-${FLATCAR_GCP_DEPLOYMENT_PACKAGE_NAME}.zip} | ||
FLATCAR_GCP_DEPLOYMENT_PACKAGE_URL=${FLATCAR_GCP_DEPLOYMENT_PACKAGE_URL:-https://mirror.release.flatcar-linux.net/coreos/} |
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 would rather add this folder here as subfolder instead of having to maintain that remote zip file. Currently the REGEX_TMPL
comes out of nowhere if one can't easily read the template it works on.
done | ||
|
||
# zip the contents of the directory | ||
local c_date=$(date +%Y%m%d) |
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.
local c_date=$(date +%Y%m%d) | |
local c_date | |
c_date=$(date +%Y%m%d) |
local
hides any failures
-d ${WORK_DIR}/${FLATCAR_GCP_DEPLOYMENT_PACKAGE_NAME} | ||
|
||
for channel in stable beta alpha; do | ||
local ver=$(get_version "${channel}") |
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.
local ver=$(get_version "${channel}") | |
local ver | |
ver=$(get_version "${channel}") |
local
hides any failures
} | ||
|
||
get_version() { | ||
local channel=$1 |
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.
local channel=$1 | |
local channel="$1" |
Closing this since https://github.com/flatcar/flatcar-maintainer-private/pull/11 has been merged and the script in this PR is now part of https://github.com/flatcar/flatcar-maintainer-private/tree/main/documentation/maintenance. |
Add script to create and upload GCP deployment packages to bucket
To be merged with https://github.com/kinvolk/PROJECT-flatcar-linux/pull/555