forked from ShelterTechSF/askdarcel-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Merge pull request #11 from Exygy/exygy-docker-nginx-update
add production deploy workflow; add comments to sheltertechs workflows
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|