Skip to content

Commit

Permalink
Merge pull request #33 from soumik-mukherjee/bug/32_pipeline_defects
Browse files Browse the repository at this point in the history
Implement & test pipeline
  • Loading branch information
soumik-mukherjee authored Apr 19, 2020
2 parents 8aa6313 + a1dae28 commit ae37d8b
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .firebaserc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"projects": {
"default": ""
"default": "capturio-274419"
}
}
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A PWA for video production - screencasts, voice overs and camera integration. Ze

## Install Guide

Just open the app in a browser. PWAs can be installed on the desktop as well, see [this](https://support.google.com/chrome/answer/9658361) support article by Google, on how.
This web app s hosted at : https://capturio.soumikmukherjee.dev. To use it, just open the app in a browser. PWAs can be installed on the desktop as well, see [this](https://support.google.com/chrome/answer/9658361) support article by Google, on how.

More release channels targetted for future, e.g. windows store etc.

Expand Down Expand Up @@ -57,6 +57,32 @@ You can also run a local server to check out your `production` build, with
$ yarn serve:webapp
```

### CICD
The project supports a [Google Cloud Build](https://cloud.google.com/cloud-build) based CICD pipeline to deploy to [Firebase hosting](https://firebase.google.com/docs/hosting). The `cloudbuild.yaml` file models the pipeline.

To trigger the pipeline, do the following:

1. Use `yarn version` to bump the version numbers. Follow `semver`. You should have the following setup before doing this as well

```bash
$ yarn config set version-sign-git-tag true (Optional, only if you want signed tags)
$ yarn config set version-tag-prefix "v"
$ yarn config set version-git-tag true
```
then do (e.g. below if you are releasing a `minor` version update)
```bash
$ yarn version --minor
```
This will bump the minor version number on your `package.json` (root) and also create a git tag (an annotated one).
2. Push the git tag to remote, using
```bash
$ git push origin v1.1.0
```
### Submitting PRs
Expand Down
15 changes: 10 additions & 5 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ steps:
- --ciphertext-file=.env.enc
- --plaintext-file=.env
- --location=global
- --keyring=myproject
- --key=cloudbuild-env
- --keyring=capturio-keyring
- --key=cloudbuild-env-config
# Install yarn dependencies
- name: "gcr.io/cloud-builders/yarn"
- name: node:12.16.2
entrypoint: yarn
args: ['install']
# Build
- name: "gcr.io/cloud-builders/yarn"
- name: node:12.16.2
entrypoint: yarn
args: ["build:webapp"]
# Deploy
- name: "gcr.io/cloud-builders/yarn"
- name: node:12.16.2
entrypoint: yarn
args: ["deploy"]

0 comments on commit ae37d8b

Please sign in to comment.