Skip to content

Commit

Permalink
Merge pull request #11 from Exygy/exygy-docker-nginx-update
Browse files Browse the repository at this point in the history
add production deploy workflow; add comments to sheltertechs workflows
kramduckner authored May 29, 2024
2 parents 64a488b + 181dbf4 commit aebef2c
Showing 4 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
# Exygy - This is a workflow from Sheltertech that we don't use in the fork

name: testsuite

42 changes: 42 additions & 0 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build and deploy to heroku production.

on:
push:
branches: [main]

jobs:
build_and_deploy_app:
runs-on: ubuntu-latest
environment: "prod"
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- run: npm i
- run: npm run build
env:
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }}
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}
AUTH0_AUDIENCE: ${{ secrets.AUTH0_AUDIENCE }}
AUTH0_REDIRECT_URI: ${{ secrets.AUTH0_REDIRECT_URI }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
ALGOLIA_INDEX_PREFIX: ${{ secrets.ALGOLIA_INDEX_PREFIX }}
ALGOLIA_APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
ALGOLIA_READ_ONLY_API_KEY: ${{ secrets.ALGOLIA_READ_ONLY_API_KEY }}
- name: Build, Push and Release a Docker container to Heroku.
uses: gonuit/[email protected]
with:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
dockerfile_directory: ./
dockerfile_name: Dockerfile
docker_options: "--no-cache"
process_type: web
1 change: 1 addition & 0 deletions .github/workflows/publish-qa.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Exygy - This is a workflow from Sheltertech that we don't use in the fork
name: publish-qa

on:
1 change: 1 addition & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Exygy - This is a workflow from Sheltertech that we don't use in the fork
name: publish-release

on:

0 comments on commit aebef2c

Please sign in to comment.