-
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.
ability to set display mode for custom tracks
- Loading branch information
NishiPhalke
committed
Sep 10, 2020
1 parent
ba06449
commit 58f1b08
Showing
24 changed files
with
429 additions
and
248 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,31 @@ | ||
name: Build App | ||
|
||
on: | ||
create: | ||
tags: | ||
- v* | ||
|
||
# Environment variables available to all jobs and steps in this workflow | ||
env: | ||
GKE_PROJECT: ${{ secrets.GKE_PROJECT }} | ||
GKE_EMAIL: ${{ secrets.GKE_EMAIL }} | ||
GITHUB_SHA: ${{ github.sha }} | ||
DOCKER_IMAGE_NAME: umms-gb | ||
REGISTRY_HOSTNAME: gcr.io | ||
|
||
name: CI | ||
on: [push] | ||
jobs: | ||
setup-build-app: | ||
name: build and push app | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Begin CI... | ||
uses: actions/checkout@v2 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Use Node 12 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
|
||
# Setup gcloud CLI | ||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master | ||
with: | ||
version: '270.0.0' | ||
service_account_email: ${{ secrets.GKE_EMAIL }} | ||
service_account_key: ${{ secrets.GKE_KEY }} | ||
- name: Use cached node_modules | ||
uses: actions/cache@v1 | ||
with: | ||
path: node_modules | ||
key: nodeModules-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
nodeModules- | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
env: | ||
CI: true | ||
|
||
# Configure docker to use the gcloud command-line tool as a credential helper | ||
- run: | | ||
# Set up docker to authenticate | ||
# via gcloud command-line tool. | ||
gcloud auth configure-docker | ||
# Build the Docker image | ||
- name: Build | ||
run: | | ||
docker build -t "$REGISTRY_HOSTNAME"/"$GKE_PROJECT"/"$DOCKER_IMAGE_NAME":"${GITHUB_REF/refs\/tags\//}" \ | ||
--build-arg GITHUB_SHA="$GITHUB_SHA" \ | ||
--build-arg GITHUB_REF="$GITHUB_REF" . | ||
- name: Push Docker Image | ||
run: | | ||
docker push "$REGISTRY_HOSTNAME"/"$GKE_PROJECT"/"$DOCKER_IMAGE_NAME":"${GITHUB_REF/refs\/tags\//}" | ||
|
||
- name: Build | ||
run: yarn build | ||
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,49 @@ | ||
name: Build App | ||
|
||
on: | ||
create: | ||
tags: | ||
- v* | ||
|
||
# Environment variables available to all jobs and steps in this workflow | ||
env: | ||
GKE_PROJECT: ${{ secrets.GKE_PROJECT }} | ||
GKE_EMAIL: ${{ secrets.GKE_EMAIL }} | ||
GITHUB_SHA: ${{ github.sha }} | ||
DOCKER_IMAGE_NAME: umms-gb | ||
REGISTRY_HOSTNAME: gcr.io | ||
|
||
jobs: | ||
setup-build-app: | ||
name: build and push app | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# Setup gcloud CLI | ||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master | ||
with: | ||
version: '270.0.0' | ||
service_account_email: ${{ secrets.GKE_EMAIL }} | ||
service_account_key: ${{ secrets.GKE_KEY }} | ||
|
||
# Configure docker to use the gcloud command-line tool as a credential helper | ||
- run: | | ||
# Set up docker to authenticate | ||
# via gcloud command-line tool. | ||
gcloud auth configure-docker | ||
# Build the Docker image | ||
- name: Build | ||
run: | | ||
docker build -t "$REGISTRY_HOSTNAME"/"$GKE_PROJECT"/"$DOCKER_IMAGE_NAME":"${GITHUB_REF/refs\/tags\//}" \ | ||
--build-arg GITHUB_SHA="$GITHUB_SHA" \ | ||
--build-arg GITHUB_REF="$GITHUB_REF" . | ||
- name: Push Docker Image | ||
run: | | ||
docker push "$REGISTRY_HOSTNAME"/"$GKE_PROJECT"/"$DOCKER_IMAGE_NAME":"${GITHUB_REF/refs\/tags\//}" | ||
|
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
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
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
Oops, something went wrong.