Skip to content

Commit

Permalink
feat: added develop environment
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 authored and acaldas committed Jun 12, 2024
1 parent 4f62029 commit f5e30b9
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build-and-deploy-powerhouse-develop.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy Switchboard Powerhouse Develop

on:
push:
branches: [develop]
jobs:
build:
environment: develop
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 }} --build-arg BASE_PATH=/alpha/powerhouse/switchboard"
- 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

0 comments on commit f5e30b9

Please sign in to comment.