Skip to content

Commit 53ee699

Browse files
committed
build extension image and install files
Signed-off-by: Philippe Martin <[email protected]>
1 parent 762b7df commit 53ee699

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/e2e-tests.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ jobs:
3030
fail-fast: true
3131
steps:
3232
- uses: actions/checkout@v6
33+
with:
34+
path: kubernetes-dashboard
35+
36+
- uses: pnpm/action-setup@v4
37+
name: Install pnpm
38+
with:
39+
run_install: false
40+
package_json_file: ./kubernetes-dashboard/package.json
41+
42+
- uses: actions/setup-node@v6
43+
with:
44+
node-version: 22
3345

3446
- name: Update podman to 5.x
3547
if: runner.os == 'Linux'
@@ -77,3 +89,24 @@ jobs:
7789
curl -sL "https://github.com/podman-desktop/podman-desktop/releases/download/v${PD_VERSION}/podman-desktop-${PD_VERSION}.tar.gz" | tar xvz
7890
# Move the extracted folder to the podman-desktop folder
7991
mv podman-desktop-${PD_VERSION}/ podman-desktop/
92+
93+
- name: Execute pnpm in extension
94+
working-directory: ./kubernetes-dashboard
95+
run: pnpm install --no-frozen-lockfile
96+
97+
- name: Build Image
98+
working-directory: ./kubernetes-dashboard
99+
id: build-image
100+
run: |
101+
pnpm build
102+
podman build -t local_extension_image -f build/Containerfile ./
103+
CONTAINER_ID=$(podman create localhost/local_extension_image --entrypoint "")
104+
mkdir -p tests/extension_sources/
105+
podman export $CONTAINER_ID | tar -x -C tests/extension_sources/
106+
podman rm -f $CONTAINER_ID
107+
podman rmi -f localhost/local_extension_image:latest
108+
109+
- name: show extension files
110+
working-directory: ./kubernetes-dashboard
111+
run: |
112+
ls -laR tests/extension_sources/

0 commit comments

Comments
 (0)