-
Notifications
You must be signed in to change notification settings - Fork 813
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
Release Automation: Push images on cloud #3090
Conversation
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.
Looks really good!
Let's also take these step out of make do-release
and this is probably good to go.
Unless we need to update the release checklist as well? You probably know this best at this point 👍🏻
agones/build/includes/release.mk
Lines 74 to 96 in 02e57ba
do-release: RELEASE_VERSION ?= $(base_version) | |
do-release: $(ensure-build-image) | |
@echo "Starting release for version: $(RELEASE_VERSION)" | |
# switch to the right project | |
$(DOCKER_RUN) gcloud config configurations activate agones-images | |
git checkout -b release-$(RELEASE_VERSION) | |
-rm -rf $(agones_path)/release | |
mkdir $(agones_path)/release | |
$(MAKE) -j 4 build VERSION=$(RELEASE_VERSION) REGISTRY=$(release_registry) FULL_BUILD=1 | |
cp $(agones_path)/cmd/sdk-server/bin/agonessdk-server-$(RELEASE_VERSION).zip $(agones_path)/release | |
cp $(agones_path)/sdks/cpp/.archives/agonessdk-$(RELEASE_VERSION)-linux-arch_64.tar.gz $(agones_path)/release | |
cd $(agones_path) && zip -r ./release/agones-install-$(RELEASE_VERSION).zip ./README.md ./install ./LICENSE | |
$(MAKE) gcloud-auth-docker | |
$(MAKE) -j 4 push REGISTRY=$(release_registry) VERSION=$(RELEASE_VERSION) | |
$(MAKE) push-chart VERSION=$(RELEASE_VERSION) | |
git push -u upstream release-$(RELEASE_VERSION) | |
@echo "Now go make the $(RELEASE_VERSION) release on Github!" |
build/release/cloudbuild.yaml
Outdated
env: | ||
- "VERSION=${_VERSION}" | ||
- "REGISTRY=${_REGISTRY}/release" | ||
args: ["-j", "1", "push"] |
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.
Could we do this in parrallel? (i.e. -j=4
(or whatever number is the best)? Maybe make things a bit faster?)
This step is not required in cloud? |
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.
Sorry - sent you a message offline - just realised I've sent you down the wrong path - my apologies.
I am working on it.. |
Build Failed 😱 Build Id: f6fb36b5-ea4e-4fa3-a2be-b5f18714ff4c To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
… steps separately
Build Failed 😱 Build Id: 044b212b-4382-4fbf-bc08-2fc86f1d6c48 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Failed 😱 Build Id: 9d852352-3e52-4243-b402-876845080d63 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Succeeded 👏 Build Id: 3aaac936-73fa-4e7b-b59f-d56dd5743829 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
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.
Couple of small things, but this looks good 👍🏻
cd $(agones_path) && zip -r ./release/agones-install-$(RELEASE_VERSION).zip ./README.md ./install ./LICENSE | ||
|
||
$(MAKE) gcloud-auth-docker | ||
$(MAKE) -j 4 push REGISTRY=$(release_registry) VERSION=$(RELEASE_VERSION) |
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.
Let's keep the target, but remove the building of the images and pushing them.
We still need to push the helm chart (which is being worked on), and also work out where to sort out the git branch work as well.
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.
Included the do-release target with push-chart and git branch. Will work on the branch part along with push-chart target in b/278275965
build/release/post_cloudbuild.yaml
Outdated
@@ -0,0 +1,125 @@ | |||
# Copyright 2021 Google LLC |
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.
New files, so
# Copyright 2021 Google LLC | |
# Copyright 2023 Google LLC |
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.
fixed it 👍🏻
Build Succeeded 👏 Build Id: 8de54efe-4b39-400a-88a7-3c5e9e83dd56 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
New changes are detected. LGTM label has been removed. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Kalaiselvi84, markmandel The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Build Succeeded 👏 Build Id: 857e4ff2-201f-4d6c-813d-cd8d0892e9d3 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
What type of PR is this?
What this PR does / Why we need it:
Which issue(s) this PR fixes:
Closes #
Special notes for your reviewer: