Skip to content

Commit 5724a8a

Browse files
committed
fix: update npm build
Signed-off-by: Michelle McAveety <[email protected]>
1 parent fef85a4 commit 5724a8a

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

apicurio-registry.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package:
22
name: apicurio-registry
33
version: "3.0.9"
4-
epoch: 4
4+
epoch: 5
55
description: An API/Schema registry - stores APIs and Schemas
66
copyright:
77
- license: Apache-2.0
@@ -71,9 +71,12 @@ subpackages:
7171
- working-directory: ui
7272
runs: |
7373
npm install
74+
npm run clean
7475
npm audit fix --package-lock-only --legacy-peer-deps || true
7576
npm run build
77+
npm run package
7678
79+
# Move UI assets to expected directory
7780
mkdir -p ${{targets.contextdir}}/opt/app-root/src
7881
cp -r ui-app/dist/* ${{targets.contextdir}}/opt/app-root/src/
7982
@@ -82,24 +85,18 @@ subpackages:
8285
pipeline:
8386
- working-directory: ui
8487
runs: |
85-
# Configure certificate and key
88+
# Configure certificate and key (per upstream)
8689
mkdir -p /etc/pki/nginx/private
8790
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/pki/nginx/private/server.key -out /etc/pki/nginx/server.crt --batch
8891
chown -R 1001:0 /etc/pki/nginx/ && chmod 755 /etc/pki/nginx/private/server.key /etc/pki/nginx/server.crt
8992
90-
# Copy configuration scripts
93+
# Copy configuration scripts (per upstream)
9194
config_dest="${{targets.contextdir}}/usr/local/bin/"
9295
install -Dm644 -o 1001 -g 0 .docker-scripts/create-config.cjs "${config_dest}/create-config.cjs"
9396
install -Dm644 -o 1001 -g 0 .docker-scripts/update-base-href.cjs "${config_dest}/update-base-href.cjs"
9497
install -Dm644 -o 1001 -g 0 .docker-scripts/entrypoint.sh "${config_dest}/entrypoint.sh"
9598
install -Dm644 -o 1001 -g 0 .docker-scripts/nginx.conf "${config_dest}/etc/nginx/nginx.conf"
9699
97-
# Copy dist files
98-
# cp dist/ ${{targets.contextdir}}
99-
100-
# Grant write permission to group
101-
# chmod -R g+w /opt/app-root/src /usr/local/bin/
102-
103100
update:
104101
enabled: true
105102
github:

0 commit comments

Comments
 (0)