Update UI artifacts consumption (#2074)

Update UI artifacts consumption to allow UI editions
This commit is contained in:
Carlos Alcaide Corvo authored and GitHub committed 2022-05-16 12:05:32 -07:00
1 parent ff9470d7df
commit ce0507ee99
3 files changed
+34 -4

No files matched your search

+23 -3
View File
@@ -60,10 +60,28 @@ jobs:
project="$(go list -m)"
sha="$(git rev-parse HEAD)"
echo "::set-output name=ldflags::"-s -w -X \'$project/version.GitCommit=$sha\'""
get-product-edition:
runs-on: ubuntu-latest
outputs:
product-edition: ${{ steps.get-product-edition.outputs.product-edition}}
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.18.1"
- name: Get product edition
id: get-product-edition
run: |
make edition
echo "::set-output name=product-edition::$(make edition)"
build-other:
needs:
- get-product-version
- get-product-edition
- set-ld-flags
runs-on: ubuntu-latest
strategy:
@@ -102,7 +120,7 @@ jobs:
workflow: build-admin-ui.yaml
commit: ${{ steps.set-sha.outputs.sha }}
repo: "hashicorp/boundary-ui"
name: admin-ui
name: admin-ui-${{ needs.get-product-edition.outputs.product-edition }}
path: internal/ui/.tmp/boundary-ui/ui/admin/dist
- name: Go Build
env:
@@ -124,6 +142,7 @@ jobs:
build-linux:
needs:
- get-product-version
- get-product-edition
- set-ld-flags
runs-on: ubuntu-latest
strategy:
@@ -157,7 +176,7 @@ jobs:
workflow: build-admin-ui.yaml
commit: ${{ steps.set-sha.outputs.sha }}
repo: "hashicorp/boundary-ui"
name: admin-ui
name: admin-ui-${{ needs.get-product-edition.outputs.product-edition }}
path: internal/ui/.tmp/boundary-ui/ui/admin/dist
- name: Go Build
env:
@@ -209,6 +228,7 @@ jobs:
build-darwin:
needs:
- get-product-version
- get-product-edition
- set-ld-flags
runs-on: macos-latest
strategy:
@@ -239,7 +259,7 @@ jobs:
workflow: build-admin-ui.yaml
commit: ${{ steps.set-sha.outputs.sha }}
repo: "hashicorp/boundary-ui"
name: admin-ui
name: admin-ui-${{ needs.get-product-edition.outputs.product-edition }}
path: internal/ui/.tmp/boundary-ui/ui/admin/dist
- name: Go Build
env:
+10
View File
@@ -323,3 +323,13 @@ ci-verify:
# This is used for release builds by .github/workflows/build.yml
version:
@go run ./cmd/boundary version | awk '/Version Number:/ { print $$3 }'
EDITION?=
.PHONY: edition
# This is used for release builds by .github/workflows/build.yml
edition:
@if [ -z "$(EDITION)" ]; then \
go run ./cmd/boundary version -format=json | jq -r '.version_metadata // "oss"'; \
else \
echo $(EDITION); \
fi; \
+1 -1
View File
@@ -1,4 +1,4 @@
8545697b430a432bd50c1bde6a080759f803f157 Add toolbar regions to align refresh button to the right (#1098)
7e792d3f7664bf3efdf33a66539022d3f3cdaf4c Refactor UI generated artifacts creation. (#1104)
# This file determines the version of the UI to embed in the boundary binary.
# Update this file by running 'make update-ui-version' from the root of this repo.
# Set UI_COMMITISH when running the above target to update to a specific version.