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

Add script to create and upload GCP deployment packages to bucket #139

Closed
wants to merge 1 commit into from

Conversation

sayanchowdhury
Copy link
Member

Add script to create and upload GCP deployment packages to bucket

To be merged with https://github.com/kinvolk/PROJECT-flatcar-linux/pull/555

@sayanchowdhury sayanchowdhury requested review from dongsupark and a team March 13, 2023 09:41
Comment on lines +6 to +7
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/}
Copy link
Member

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
local ver=$(get_version "${channel}")
local ver
ver=$(get_version "${channel}")

local hides any failures

}

get_version() {
local channel=$1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
local channel=$1
local channel="$1"

@t-lo
Copy link
Member

t-lo commented Jul 3, 2024

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

Successfully merging this pull request may close these issues.

3 participants