Skip to content

Commit

Permalink
feat(ci): add cloud build config
Browse files Browse the repository at this point in the history
  • Loading branch information
pwambach committed Sep 30, 2019
1 parent 13a7199 commit d5eb64d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions ci/cloudbuild-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
steps:
- name: 'gcr.io/cloud-builders/npm'
entrypoint: npm
args: ['ci']
- name: 'gcr.io/cloud-builders/npm'
entrypoint: npm
args: ['run', 'build']
- name: 'gcr.io/cloud-builders/gsutil'
args: ['rm', '-r', 'gs://esa-cfs-versions/${BRANCH_NAME}']
- name: 'gcr.io/cloud-builders/gsutil'
args: ['cp', '-r', './dist', 'gs://esa-cfs-versions/${BRANCH_NAME}']
- name: 'gcr.io/cloud-builders/gsutil'
args:
[
'acl',
'ch',
'-r',
'-u',
'AllUsers:R',
'gs://esa-cfs-versions/${BRANCH_NAME}/*',
]
- name: 'gcr.io/cloud-builders/gsutil'
args:
[
'setmeta',
'-h',
'cache-control:no-cache',
'gs://esa-cfs-versions/${BRANCH_NAME}/*',
]
2 changes: 1 addition & 1 deletion src/scripts/components/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const store = createStore(rootReducer, applyMiddleware(thunk, logger));

const App: FunctionComponent<{}> = () => (
<Provider store={store}>
<h1 className={styles.app}>Hello</h1>
<h1 className={styles.app}>Hello2</h1>
<LayerSelector />
</Provider>
);
Expand Down

0 comments on commit d5eb64d

Please sign in to comment.