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

Build a more formal deploy process and improve infra config #250

Merged
merged 3 commits into from
Nov 24, 2022
Merged

Conversation

calebbrown
Copy link
Contributor

Create/improve the deploy process and improve the kubernetes infrastructure config.

  • Kustomize is used to avoid needing to re-define k8s configs for each environment.
  • Cloud Deploy configs have been added to support using Cloud Deploy for managing the release process.
    • Two targets/profiles have been added "staging" and "prod".
    • "staging" is used first, and a working release is promoted to "prod".
  • A new cloudbuild config for triggering releases has been added. This will be run on a fixed schedule once a day. It should abort if the release already exists for the given commit ID.
  • Image names and tags are injected into the k8s configs.
    • Scorecard images are hardcoded to the same commit ID as the go.mod
    • Criticality Score images are set during the Cloud Deploy release.
  • To ensure Scorecard image tags match go.mod a check has been added that will run in a GitHub CI Workflow

Signed-off-by: Caleb Brown <calebbrown@google.com>
Signed-off-by: Caleb Brown <calebbrown@google.com>
Signed-off-by: Caleb Brown <calebbrown@google.com>
Copy link
Contributor

@oliverchang oliverchang left a comment

Choose a reason for hiding this comment

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

very nice!

@calebbrown calebbrown merged commit c4797c7 into main Nov 24, 2022
@calebbrown calebbrown deleted the deploy branch November 24, 2022 02:53
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.

None yet

2 participants