Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(devenv): deploy vanilla devenv #5227

Merged
merged 6 commits into from
Feb 1, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/deploy-vanilla-devenv.yml
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
asudoh marked this conversation as resolved.
Show resolved Hide resolved
run: |
cd packages/components
ibmcloud cf blue-green-deploy carbon-dev-environment \
-f manifest.yml \
--delete-old-apps
2 changes: 2 additions & 0 deletions packages/components/.cfignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
demo/*
!demo/index.html
!demo/demo.js
!demo/demo.min.js
!demo/demo.min.js.map
!demo/demo.css
!demo/code/
!demo/code/**
Expand Down
3 changes: 2 additions & 1 deletion packages/components/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ applications:
- name: carbon-dev-environment
memory: 64M
buildpack: https://github.com/cloudfoundry/staticfile-buildpack.git
random-route: true
routes:
- route: vanilla.carbondesignsystem.com