File tree 2 files changed +14
-18
lines changed
2 files changed +14
-18
lines changed Original file line number Diff line number Diff line change 24
24
25
25
jobs :
26
26
release :
27
- runs-on : ubuntu-22 .04
27
+ runs-on : ubuntu-24 .04
28
28
steps :
29
29
- name : Set up QEMU
30
30
uses : docker/setup-qemu-action@v2
46
46
uses : docker/build-push-action@v4
47
47
with :
48
48
context : .
49
+ file : oci/Containerfile.multistage
49
50
platforms : linux/amd64,linux/arm64
50
51
push : true
51
52
tags : ghcr.io/crc-org/crc-extension:latest
Original file line number Diff line number Diff line change 15
15
#
16
16
# SPDX-License-Identifier: Apache-2.0
17
17
18
- FROM registry.access.redhat.com/ubi9/nodejs-18 :latest AS builder
18
+ FROM ghcr.io/crc-org/crc-extension-builder :latest AS builder
19
19
20
20
COPY . .
21
21
22
- RUN npm install -g yarn \
23
- && npx yarn install \
24
- && npx yarn build
25
-
26
- RUN mkdir /tmp/extension \
27
- && cp /opt/app-root/src/package.json \
28
- /opt/app-root/src/LICENSE \
29
- /opt/app-root/src/README.md \
30
- /opt/app-root/src/icon.png /tmp/extension \
31
- && cp -r /opt/app-root/src/dist /tmp/extension/dist
32
-
22
+ RUN yarn --network-timeout 180000 \
23
+ && yarn build
33
24
34
25
FROM scratch
35
26
36
27
LABEL org.opencontainers.image.title="Red Hat OpenShift Local" \
37
- org.opencontainers.image.description="Integration for Red Hat OpenShift Local clusters" \
38
- org.opencontainers.image.vendor="redhat" \
39
- io.podman-desktop.api.version=">= 0.16.0"
40
-
41
- COPY --from=builder /tmp/extension/ /extension
28
+ org.opencontainers.image.description="Integration for Red Hat OpenShift Local clusters" \
29
+ org.opencontainers.image.vendor="redhat" \
30
+ io.podman-desktop.api.version=">= 0.16.0"
31
+
32
+ COPY package.json /extension/
33
+ COPY LICENSE /extension/
34
+ COPY icon.png /extension/
35
+ COPY README.md /extension/
36
+ COPY --from=builder /opt/app-root/src/dist /extension/dist
You can’t perform that action at this time.
0 commit comments