Skip to content

Commit

Permalink
added deploy to DO button
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Jan 10, 2024
1 parent fc2042d commit eb9e76c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .do/deploy.template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
spec:
name: altair-graphql-api
services:
- name: api
git:
branch: master
repo_clone_url: https://github.com/altair-graphql/altair.git
envs:
- key: JWT_ACCESS_SECRET
scope: RUN_TIME
- key: EVENTS_JWT_ACCESS_SECRET
scope: RUN_TIME
- key: JWT_REFRESH_SECRET
scope: RUN_TIME
- key: GOOGLE_OAUTH_CLIENT_ID
scope: RUN_TIME
- key: GOOGLE_OAUTH_CLIENT_SECRET
scope: RUN_TIME
- key: POSTGRES_DB
scope: RUN_TIME
- key: POSTGRES_USER
scope: RUN_TIME
- key: POSTGRES_PASSWORD
scope: RUN_TIME
- key: DATABASE_URL
scope: RUN_TIME
value: ${postgresdb.DATABASE_URL}
- key: STRIPE_SECRET_KEY
scope: RUN_TIME
- key: STRIPE_WEBHOOK_SECRET
scope: RUN_TIME
databases:
- name: postgresdb
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ Read more [here](.github/development.md).
#### Docker
The docker image can be built from the [Dockerfile](./Dockerfile) at the root of the repo.

#### Digitalocean
[![Deploy to DO](https://www.deploytodo.com/do-btn-blue.svg)](https://cloud.digitalocean.com/apps/new?repo=https://github.com/altair-graphql/altair/tree/master)

#### Vercel
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Faltair-graphql%2Faltair&env=JWT_ACCESS_SECRET,EVENTS_JWT_ACCESS_SECRET,JWT_REFRESH_SECRET,GOOGLE_OAUTH_CLIENT_ID,GOOGLE_OAUTH_CLIENT_SECRET,POSTGRES_DB,POSTGRES_USER,POSTGRES_PASSWORD,DATABASE_URL,STRIPE_SECRET_KEY&project-name=altair-graphql-api&redirect-url=https%3A%2F%2Faltairgraphql.dev%2F)

Expand Down

0 comments on commit eb9e76c

Please sign in to comment.