Skip to content

Updated workflow to use secret, cron now outputs reasonably - #191

Merged
snekiam merged 1 commit into
devfrom
ssl_cert_updates
Aug 9, 2020
Merged

snekiam merged 1 commit into
devfrom
ssl_cert_updates

Conversation

@snekiam

@snekiam snekiam commented Aug 9, 2020

Copy link
Copy Markdown
Member

What's New?

Use the INSTANCE_NAME from secrets to deploy to gcp.
Updated the cron to update SSL certs to output to stdout, which is logged by docker

Fixes (works toward) #188

Type of change (pick-one)

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

This doesn't change the way the api runs locally, it'll have to be tested on deploy.

Checklist (check-all-before-merge)

formatting help: - [x] means "checked' and - [ ] means "unchecked"

  • I documented my code according to the Google Python Style Guide

  • I ran ./build_docs.sh and the docs look fine

  • I ran ./type_check.sh and got no errors

  • I ran ./format.sh because it automatically cleans my code for me 😄

  • I ran ./lint.sh to check for what "format" missed

  • I added my tests to the /tests directory

  • I ran ./run_tests.sh and all the tests pass

@sonarqubecloud

sonarqubecloud Bot commented Aug 9, 2020

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@@ -1 +1 @@
0 15 * * * /nimbus/cert-update.sh
0 15 * * * /nimbus/cert-update.sh > stdout

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nice logging!

env:
GCE_PROJECT: ${{ secrets.GCE_PROJECT }}
GCE_INSTANCE: nimbus-api-test
GCE_INSTANCE: ${{ secrets.INSTANCE_NAME }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yes, as long as the secrets are set then it's good!

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