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

Allow webhook to create a deployment #1227

Merged
merged 2 commits into from
Oct 31, 2018

Conversation

priyawadhwa
Copy link
Contributor

Adds support for creating a deployment which will map to a service with
an external IP.

The deployment consists of an init container and a regular container.
The init container is responsible for copying the PR branch (with docs
changes) into an emptyDir volume. The volume is then mounted into a
container, which runs hugo server -D --bind 0.0.0.0 --baseURL external-service-ip. Once this deployment stabilizes, the static
website reflecting changes to the docs should be available at the
external IP address associated with the service.

Next steps include:

  1. Commenting on the Github PR once the deployment is ready
  2. Uploading logs to GCS and commenting on the Github PR with a link to
    those logs if the deployment should fail

I also added --tag $COMMIT_SHA to the cloudbuild release yaml because deployed images weren't being tagged with it automatically (currently the image running in cluster is tagged with dirty-6691c77)

Priya Wadhwa added 2 commits October 30, 2018 14:43
Adds support for creating a deployment which will map to a service with
an external IP.

The deployment consists of an init container and a regular container.
The init container is responsible for copying the PR branch (with docs
changes) into an emptyDir volume. The volume is then mounted into a
container, which runs `hugo server -D --bind 0.0.0.0 --baseURL
external-service-ip`. Once this deployment stabilizes, the static
website reflecting changes to the docs should be availble at the
external IP address associated with the service.

Next steps include:

1. Commenting on the Github PR once the deployment is ready
2. Uploading logs to GCS and commenting on the Github PR with a link to
those logs if the deployment should fail
@codecov-io
Copy link

Codecov Report

Merging #1227 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1227   +/-   ##
=======================================
  Coverage   41.49%   41.49%           
=======================================
  Files          95       95           
  Lines        4234     4234           
=======================================
  Hits         1757     1757           
  Misses       2307     2307           
  Partials      170      170

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 232ab06...e94ec9a. Read the comment docs.

Copy link
Contributor

@balopat balopat left a comment

Choose a reason for hiding this comment

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

LGTM

@priyawadhwa priyawadhwa merged commit d4dbf2b into GoogleContainerTools:master Oct 31, 2018
@priyawadhwa priyawadhwa deleted the webhook branch October 31, 2018 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants