Skip to content

Commit

Permalink
feat: added makerdao and updated powerhouse deployments pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed Apr 4, 2024
1 parent da9729b commit 6dfcaa3
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 20 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build-and-deploy-makerdao-prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy Switchboard MakerDAO

on:
push:
branches: [deployments/makerdao]
jobs:
build:
environment: MakerDAO Production
runs-on: ubuntu-latest
steps:
# Check-out your repository.
- name: Checkout
uses: actions/checkout@v2

- name: Build, Push and Release API to Heroku. # Your custom step name
uses: gonuit/[email protected]
with:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_API_NAME }}
dockerfile_directory: ./api
dockerfile_name: Dockerfile
process_type: web
- name: Build, Push and Release Frontend to Heroku. # Your custom step name
uses: gonuit/[email protected]
with:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_FRONTEND_NAME }}
dockerfile_directory: ./frontend
dockerfile_name: Dockerfile
process_type: web
docker_options: "--build-arg NEXT_PUBLIC_SWITCHBOARD_GRAPHQL_HOST=${{ secrets.NEXT_PUBLIC_SWITCHBOARD_GRAPHQL_HOST }}"
- name: Build, Push and Release NGINX to Heroku. # Your custom step name
uses: gonuit/[email protected]
with:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_NGINX_NAME }}
dockerfile_directory: ./nginx
dockerfile_name: Dockerfile
process_type: web
42 changes: 42 additions & 0 deletions .github/workflows/build-and-deploy-makerdao-staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy Switchboard MakerDAO Staging

on:
push:
branches: [deployments/staging/makerdao]
jobs:
build:
environment: MakerDAO Staging
runs-on: ubuntu-latest
steps:
# Check-out your repository.
- name: Checkout
uses: actions/checkout@v2

- name: Build, Push and Release API to Heroku. # Your custom step name
uses: gonuit/[email protected]
with:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_API_NAME }}
dockerfile_directory: ./api
dockerfile_name: Dockerfile
process_type: web
- name: Build, Push and Release Frontend to Heroku. # Your custom step name
uses: gonuit/[email protected]
with:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_FRONTEND_NAME }}
dockerfile_directory: ./frontend
dockerfile_name: Dockerfile
process_type: web
docker_options: "--build-arg NEXT_PUBLIC_SWITCHBOARD_GRAPHQL_HOST=${{ secrets.NEXT_PUBLIC_SWITCHBOARD_GRAPHQL_HOST }}"
- name: Build, Push and Release NGINX to Heroku. # Your custom step name
uses: gonuit/[email protected]
with:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_NGINX_NAME }}
dockerfile_directory: ./nginx
dockerfile_name: Dockerfile
process_type: web
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Switchboard Production
name: Deploy Switchboard Powerhouse

on:
push:
Expand Down Expand Up @@ -31,15 +31,6 @@ jobs:
dockerfile_name: Dockerfile
process_type: web
docker_options: "--build-arg NEXT_PUBLIC_SWITCHBOARD_GRAPHQL_HOST=${{ secrets.NEXT_PUBLIC_SWITCHBOARD_GRAPHQL_HOST }}"
- name: Build, Push and Release Wundergraph to Heroku. # Your custom step name
uses: gonuit/[email protected]
with:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_WGRAPH_NAME }}
dockerfile_directory: ./wundergraph
dockerfile_name: Dockerfile
process_type: web
- name: Build, Push and Release NGINX to Heroku. # Your custom step name
uses: gonuit/[email protected]
with:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Switchboard Staging
name: Deploy Switchboard Powerhouse Staging

on:
push:
Expand Down Expand Up @@ -31,15 +31,6 @@ jobs:
dockerfile_name: Dockerfile
process_type: web
docker_options: "--build-arg NEXT_PUBLIC_SWITCHBOARD_GRAPHQL_HOST=${{ secrets.NEXT_PUBLIC_SWITCHBOARD_GRAPHQL_HOST }}"
- name: Build, Push and Release Wundergraph to Heroku. # Your custom step name
uses: gonuit/[email protected]
with:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_WGRAPH_NAME }}
dockerfile_directory: ./wundergraph
dockerfile_name: Dockerfile
process_type: web
- name: Build, Push and Release NGINX to Heroku. # Your custom step name
uses: gonuit/[email protected]
with:
Expand Down

0 comments on commit 6dfcaa3

Please sign in to comment.