-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #478 from engaging-computing/dev
2.3.0 Release
- Loading branch information
Showing
27 changed files
with
741 additions
and
664 deletions.
There are no files selected for viewing
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 @@ | ||
node_modules |
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,25 @@ | ||
name: Build MYR | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
ci-checks: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: node:10.13 | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Setup cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | ||
- name: Fetch packages | ||
run: npm ci | ||
- name: Run Linter | ||
run: npm run lint | ||
- name: Run unit tests | ||
run: npm test | ||
- name: Build production build | ||
run: npm run build |
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,28 @@ | ||
name: Deploy staging image | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
update_upstream: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: docker | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set the branch variable | ||
uses: nelonoel/[email protected] | ||
- name: Log into Quay | ||
run: docker login quay.io -u umlecg+myr_bot -p ${{ secrets.QUAY_BOT_PASSWORD }} | ||
- name: Build the docker image | ||
run: docker build -t quay.io/umlecg/myr-frontend:${BRANCH_NAME} --build-arg REACT_APP_GOOGLE_CLIENTID=${{ secrets.MYR_GOOGLE_OAUTH2 }} . | ||
- name: Push the new image | ||
run: docker push quay.io/umlecg/myr-frontend:${BRANCH_NAME} | ||
- name: Notify the build repository | ||
uses: peter-evans/repository-dispatch@v1 | ||
with: | ||
token: ${{ secrets.MYR_ACCESS_TOKEN }} | ||
event-type: update_dev | ||
repository: engaging-computing/MYR-build |
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,28 @@ | ||
name: Deploy production image | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
update_upstream: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: docker | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set the branch variable | ||
uses: nelonoel/[email protected] | ||
- name: Log into Quay | ||
run: docker login quay.io -u umlecg+myr_bot -p ${{ secrets.QUAY_BOT_PASSWORD }} | ||
- name: Build the docker image | ||
run: docker build -t quay.io/umlecg/myr-frontend:${BRANCH_NAME} --build-arg REACT_APP_GOOGLE_CLIENTID=${{ secrets.MYR_GOOGLE_OAUTH2 }} . | ||
- name: Push the new image | ||
run: docker push quay.io/umlecg/myr-frontend:${BRANCH_NAME} | ||
- name: Notify the build repository | ||
uses: peter-evans/repository-dispatch@v1 | ||
with: | ||
token: ${{ secrets.MYR_ACCESS_TOKEN }} | ||
event-type: update_master | ||
repository: engaging-computing/MYR-build |
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,11 @@ | ||
FROM node:10.13 | ||
|
||
WORKDIR /app | ||
COPY . /app | ||
|
||
ARG REACT_APP_GOOGLE_CLIENTID="totally invalid.apps.googleusercontent.com" | ||
ENV REACT_APP_GOOGLE_CLIENTID ${REACT_APP_GOOGLE_CLIENTID} | ||
|
||
RUN npm install | ||
RUN npm run build | ||
RUN npm run doc |
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
Oops, something went wrong.