Commit 2ae5bef
CHEF-33431: delegate platform-ui docker build to build-docker.sh (#59)
* Add support for NPM Azure Key in Docker build for platform-ui
Signed-off-by: Vaibhav Gadre <vgadre@progress.com>
* update common workflow for testing
Signed-off-by: Vaibhav Gadre <vgadre@progress.com>
* Add NPM Azure Key support for platform-ui Docker build and update workflow reference
Signed-off-by: Vaibhav Gadre <vgadre@progress.com>
* CHEF-33431: delegate platform-ui docker build to build-docker.sh
Replace inline Strategy 0 docker build block with a call to the repo's
own build-docker.sh script. The script is now fully self-contained:
- Submodule checkout using GITHUB_TOKEN
- NPM_AZURE_KEY written to .npmrc.tmp as a BuildKit secret
- docker buildx build --load, tagged platform-ui:local
Removes the need to duplicate npm secret / submodule logic in the
common workflow. Only GITHUB_TOKEN, NPM_AZURE_KEY, BRANCH_NAME,
GIT_SHA, APP_VERSION and LOCALES are passed as env vars to the script.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* CHEF-33431: add platform-ui Strategy 0 to wiz.yml
Add Strategy 0 identical to grype.yml and build-docker-image.yml so
platform-ui docker build delegates to build-docker.sh for Wiz scans.
Handles submodule checkout, NPM_AZURE_KEY secret, and docker buildx build.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* CHEF-33431: remove RUN_ID from build-docker-image.yml Strategy 0
GitHub-hosted runners are ephemeral — no shared Docker daemon between
jobs, so platform-ui:local tag is sufficient and unique per run.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* reverting testing changes
Signed-off-by: Vaibhav Gadre <vgadre@progress.com>
* CHEF-33431: detect platform-ui image dynamically after build-docker.sh
Replace hardcoded IMAGES="platform-ui:local" with the same dynamic
grep used by Strategy 1 — detects whatever tag build-docker.sh actually
produced. This decouples the workflow from the script's tag name and
works correctly regardless of branch, PR, push to main, or release.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* testing changes
Signed-off-by: Vaibhav Gadre <vgadre@progress.com>
* reverting testing changes
Signed-off-by: Vaibhav Gadre <vgadre@progress.com>
---------
Signed-off-by: Vaibhav Gadre <vgadre@progress.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 1fb28c4 commit 2ae5bef
3 files changed
Lines changed: 45 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
71 | 85 | | |
72 | | - | |
| 86 | + | |
73 | 87 | | |
74 | 88 | | |
75 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
109 | 123 | | |
110 | | - | |
| 124 | + | |
111 | 125 | | |
112 | 126 | | |
113 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
110 | 124 | | |
111 | | - | |
| 125 | + | |
112 | 126 | | |
113 | 127 | | |
114 | 128 | | |
| |||
0 commit comments