forked from carbon-design-system/carbon
-
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.
chore(devenv): deploy vanilla devenv
Fixes carbon-design-system#5205.
- Loading branch information
Showing
2 changed files
with
51 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Deploy vanilla devenv to IBM Cloud | ||
|
||
on: | ||
push: | ||
tags: | ||
# Matches tags that have the shape `vX.Y.Z`. Reference: | ||
# https://help.github.com/en/articles/workflow-syntax-for-github-actions#onpushpull_requesttagsbranches | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
|
||
# Ignore tags that use a preid after `vX.Y.Z`, for example: vX.Y.Z-alpha.0 | ||
# https://help.github.com/en/articles/workflow-syntax-for-github-actions#example-using-positive-and-negative-patterns | ||
- '!v[0-9]+.[0-9]+.[0-9]+-*' | ||
|
||
jobs: | ||
build: | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Use Node.js 10.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '10.x' | ||
- name: Install dependencies | ||
run: yarn install --offline | ||
- name: Build project | ||
run: yarn build | ||
- name: Install ibmcloud CLI | ||
run: curl -fsSL https://clis.cloud.ibm.com/install/osx | sh | ||
- name: Login to IBM Cloud | ||
env: | ||
CLOUD_API_KEY: ${{ secrets.CLOUD_API_KEY}} | ||
run: | | ||
ibmcloud login \ | ||
-a 'https://cloud.ibm.com' \ | ||
-u 'apikey' \ | ||
-p "$CLOUD_API_KEY" \ | ||
-o 'carbon-design-system' \ | ||
-s 'production' \ | ||
-r 'us-south' | ||
- name: Install IBM Cloud plugins | ||
run: | | ||
ibmcloud cf add-plugin-repo CF-Community https://plugins.cloudfoundry.org | ||
ibmcloud cf install-plugin blue-green-deploy -f -r CF-Community | ||
- name: Deploy React storybook | ||
run: | | ||
cd packages/components | ||
ibmcloud cf blue-green-deploy carbon-dev-environment \ | ||
-f manifest.yml \ | ||
--delete-old-apps |
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