Refactor build ci worfklow to decouple UI build (#1975)

Refactor build workflow to stop building the UI and consuming UI artifacts
This commit is contained in:
Carlos Alcaide Corvo authored and GitHub committed 2022-04-20 11:04:36 -07:00
1 parent 243a4c4616
commit 1342bd0183
1 file changed
+21 -54
+21 -54
View File
@@ -96,25 +96,14 @@ jobs:
- name: Set sha
id: set-sha
run: echo "::set-output name=sha::$(head -n1 internal/ui/VERSION | cut -d ' ' -f1)"
- uses: actions/checkout@v2
- name: Download UI artifact
uses: dawidd6/action-download-artifact@v2
with:
repository: "hashicorp/boundary-ui"
ref: ${{ steps.set-sha.outputs.sha }}
path: "internal/ui/.tmp/boundary-ui"
- name: Setup node and yarn
uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
cache-dependency-path: 'internal/ui/.tmp/boundary-ui/yarn.lock'
- name: Install Yarn
run: |
npm install -g yarn
- name: UI Build
working-directory: internal/ui/.tmp/boundary-ui
run: |
yarn install --network-timeout 300000
yarn build:ui:admin
workflow: build-admin-ui.yaml
commit: ${{ steps.set-sha.outputs.sha }}
repo: "hashicorp/boundary-ui"
name: admin-ui
path: internal/ui/.tmp/boundary-ui/ui/admin/dist
- name: Go Build
env:
GOOS: ${{ matrix.goos }}
@@ -162,25 +151,14 @@ jobs:
- name: Set sha
id: set-sha
run: echo "::set-output name=sha::$(head -n1 internal/ui/VERSION | cut -d ' ' -f1)"
- uses: actions/checkout@v2
- name: Download UI artifact
uses: dawidd6/action-download-artifact@v2
with:
repository: "hashicorp/boundary-ui"
ref: ${{ steps.set-sha.outputs.sha }}
path: "internal/ui/.tmp/boundary-ui"
- name: Setup node and yarn
uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
cache-dependency-path: 'internal/ui/.tmp/boundary-ui/yarn.lock'
- name: Install Yarn
run: |
npm install -g yarn
- name: UI Build
working-directory: internal/ui/.tmp/boundary-ui
run: |
yarn install --network-timeout 300000
yarn build:ui:admin
workflow: build-admin-ui.yaml
commit: ${{ steps.set-sha.outputs.sha }}
repo: "hashicorp/boundary-ui"
name: admin-ui
path: internal/ui/.tmp/boundary-ui/ui/admin/dist
- name: Go Build
env:
GOOS: ${{ matrix.goos }}
@@ -255,25 +233,14 @@ jobs:
- name: Set sha
id: set-sha
run: echo "::set-output name=sha::$(head -n1 internal/ui/VERSION | cut -d ' ' -f1)"
- uses: actions/checkout@v2
- name: Download UI artifact
uses: dawidd6/action-download-artifact@v2
with:
repository: "hashicorp/boundary-ui"
ref: ${{ steps.set-sha.outputs.sha }}
path: "internal/ui/.tmp/boundary-ui"
- name: Setup node and yarn
uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
cache-dependency-path: 'internal/ui/.tmp/boundary-ui/yarn.lock'
- name: Install Yarn
run: |
npm install -g yarn
- name: UI Build
working-directory: internal/ui/.tmp/boundary-ui
run: |
yarn install --network-timeout 300000
yarn build:ui:admin
workflow: build-admin-ui.yaml
commit: ${{ steps.set-sha.outputs.sha }}
repo: "hashicorp/boundary-ui"
name: admin-ui
path: internal/ui/.tmp/boundary-ui/ui/admin/dist
- name: Go Build
env:
GOOS: ${{ matrix.goos }}