-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
69 additions
and
66 deletions.
There are no files selected for viewing
13 changes: 7 additions & 6 deletions
13
.github/workflows/feature.yml → .github/workflows/check_format.yml
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,23 +1,24 @@ | ||
name: CI for features | ||
name: Check format | ||
|
||
on: | ||
push: | ||
branches: | ||
- feature/* | ||
- release/* | ||
|
||
jobs: | ||
feature: | ||
Check format: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: yarn | ||
- run: yarn install | ||
node-version-file: 'package.json' | ||
cache: pnpm | ||
- run: pnpm install | ||
- name: Run prettier | ||
run: yarn run check-format | ||
run: pnpm check-format | ||
env: | ||
CI: true |
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,44 @@ | ||
name: Deploy dev or stg | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
app_env: | ||
required: true | ||
type: string | ||
|
||
env: | ||
AZURE_WEBAPP_NAME: biotablero-frontend | ||
REACT_APP_ENVIRONMENT: ${{ inputs.config-app_env }} | ||
REACT_APP_BACKEND_BIAB_URL: ${{ vars.BACKEND_BIAB_URL }} | ||
REACT_APP_BACKEND_URL: ${{ vars.BACKEND_URL }} | ||
REACT_APP_BACKEND_KEY: ${{ secrets.BACKEND_KEY }} | ||
REACT_APP_GA_TRACKING_ID: ${{ vars.GA_TRACKING_ID }} | ||
|
||
jobs: | ||
build-and-deploy: | ||
name: Build and Deploy | ||
runs-on: ubuntu-latest | ||
environment: develop | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: 'package.json' | ||
cache: pnpm | ||
|
||
- name: install & build | ||
run: | | ||
pnpm -r install | ||
pnpm -r build-pkg | ||
pnpm install | ||
pnpm build | ||
- name: Deploy to Azure WebApp | ||
uses: azure/webapps-deploy@v2 | ||
with: | ||
app-name: ${{ env.AZURE_WEBAPP_NAME }} | ||
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} |
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,45 +1,13 @@ | ||
name: CD for develop | ||
name: Deploy develop | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
workflow_dispatch: | ||
|
||
env: | ||
AZURE_WEBAPP_NAME: biotablero-frontend | ||
REACT_APP_ENVIRONMENT: develop | ||
REACT_APP_BACKEND_BIAB_URL: ${{ vars.BACKEND_BIAB_URL }} | ||
REACT_APP_BACKEND_URL: ${{ vars.BACKEND_URL }} | ||
REACT_APP_BACKEND_KEY: ${{ secrets.BACKEND_KEY }} | ||
REACT_APP_GA_TRACKING_ID: ${{ vars.GA_TRACKING_ID }} | ||
|
||
jobs: | ||
build-and-deploy: | ||
name: Build and Deploy | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: develop | ||
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: yarn | ||
|
||
- name: install & build | ||
run: | | ||
yarn workspaces foreach install | ||
yarn workspaces foreach run build-pkg | ||
yarn install | ||
yarn run build | ||
- name: Deploy to Azure WebApp | ||
uses: azure/webapps-deploy@v2 | ||
with: | ||
app-name: ${{ env.AZURE_WEBAPP_NAME }} | ||
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} | ||
call-deploy: | ||
uses: .github/workflows/deploy_dev_stg.yml | ||
with: | ||
app_env: develop |
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
name: Deploy staging | ||
|
||
on: | ||
push: | ||
branches: | ||
- release/* | ||
workflow_dispatch: | ||
|
||
jobs: | ||
call-deploy: | ||
uses: .github/workflows/deploy_dev_stg.yml | ||
with: | ||
app_env: staging |