From eb9e76c5a29193a09ac2f1b61af249ad892e1ca4 Mon Sep 17 00:00:00 2001 From: Samuel Imolorhe Date: Wed, 10 Jan 2024 09:55:14 +0100 Subject: [PATCH] added deploy to DO button --- .do/deploy.template.yaml | 33 +++++++++++++++++++++++++++++++++ README.md | 3 +++ 2 files changed, 36 insertions(+) create mode 100644 .do/deploy.template.yaml diff --git a/.do/deploy.template.yaml b/.do/deploy.template.yaml new file mode 100644 index 0000000000..b6640b6dcc --- /dev/null +++ b/.do/deploy.template.yaml @@ -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 diff --git a/README.md b/README.md index 561a91216e..00d962680c 100644 --- a/README.md +++ b/README.md @@ -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)