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

Prepare deploy sample implementation (public repo) #6

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

gigsanna
Copy link
Contributor

Overview of the plan

  1. public repo should have a docker that can be used to build an app in a container
  2. there's a separate private repo that will use this docker in it's GitHub action to build an app and deploy it to GCP (without exposing any secrets and/or internal infrastructure)

This is the first step, adding a docker to public example repo

@gigsanna gigsanna requested a review from Plsr April 25, 2024 11:45
@gigsanna gigsanna self-assigned this Apr 25, 2024
Comment on lines +20 to +28
const privateEnvVars = {
APP_ENV: process.env.APP_ENV,
GIGS_PROJECT: process.env.GIGS_PROJECT,
GIGS_API_KEY: process.env.GIGS_API_KEY,
}

export function injectPrivateEnvVars() {
Object.assign(process.env, privateEnvVars)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't really understand what this does and why we need it 🙈

Copy link
Contributor

Choose a reason for hiding this comment

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

I think I answered my question myself by missing to add this in the Tracking PR in the API Docs 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Totally missed that question 😅 It's to ensure that relevant env variables are accessible when the project is built and running somewhere (or at least that's my understanding)

Copy link
Contributor

@3nvi 3nvi left a comment

Choose a reason for hiding this comment

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

Code LGTM! Haven't attempted to deploy it though

Dockerfile Show resolved Hide resolved
lib/utils.ts Show resolved Hide resolved
@gigsanna gigsanna merged commit 61cb837 into main Apr 26, 2024
@gigsanna gigsanna deleted the anna/conn-885-deploy-sample-implementation branch April 26, 2024 12:55
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