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

Release Automation: Push images on cloud #3090

Merged
merged 7 commits into from
Apr 18, 2023

Conversation

Kalaiselvi84
Copy link
Contributor

What type of PR is this?

Uncomment only one /kind <> line, press enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking
/kind bug
/kind cleanup
/kind documentation
/kind feature
/kind hotfix

What this PR does / Why we need it:

Which issue(s) this PR fixes:

Closes #

Special notes for your reviewer:

Copy link
Member

@markmandel markmandel left a 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 👍🏻

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 Show resolved Hide resolved
env:
- "VERSION=${_VERSION}"
- "REGISTRY=${_REGISTRY}/release"
args: ["-j", "1", "push"]
Copy link
Member

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?)

@Kalaiselvi84
Copy link
Contributor Author

$(MAKE) push-chart VERSION=$(RELEASE_VERSION)

This step is not required in cloud?

Copy link
Member

@markmandel markmandel left a 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.

@Kalaiselvi84
Copy link
Contributor Author

sent you a message offline

I am working on it..

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: f6fb36b5-ea4e-4fa3-a2be-b5f18714ff4c

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 044b212b-4382-4fbf-bc08-2fc86f1d6c48

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 9d852352-3e52-4243-b402-876845080d63

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@Kalaiselvi84 Kalaiselvi84 marked this pull request as ready for review April 14, 2023 18:16
@agones-bot
Copy link
Collaborator

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:

  • git fetch https://github.com/googleforgames/agones.git pull/3090/head:pr_3090 && git checkout pr_3090
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.32.0-6c2b7e1-amd64

Copy link
Member

@markmandel markmandel left a 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)
Copy link
Member

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.

Copy link
Contributor Author

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

@@ -0,0 +1,125 @@
# Copyright 2021 Google LLC
Copy link
Member

Choose a reason for hiding this comment

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

New files, so

Suggested change
# Copyright 2021 Google LLC
# Copyright 2023 Google LLC

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed it 👍🏻

@agones-bot
Copy link
Collaborator

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:

  • git fetch https://github.com/googleforgames/agones.git pull/3090/head:pr_3090 && git checkout pr_3090
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.32.0-ffe1c86-amd64

@google-oss-prow google-oss-prow bot removed the lgtm label Apr 18, 2023
@google-oss-prow
Copy link

New changes are detected. LGTM label has been removed.

@google-oss-prow
Copy link

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@agones-bot
Copy link
Collaborator

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:

  • git fetch https://github.com/googleforgames/agones.git pull/3090/head:pr_3090 && git checkout pr_3090
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.32.0-499c34e-amd64

@markmandel markmandel merged commit 811afd8 into googleforgames:main Apr 18, 2023
@markmandel markmandel deleted the pr-gcp branch April 18, 2023 14:32
@Kalaiselvi84 Kalaiselvi84 added the kind/feature New features for Agones label May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved kind/feature New features for Agones size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants