Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 213 mine #4

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ on:
push:
branches:
- 'main'
pull_request:

jobs:
release:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand All @@ -46,6 +47,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
file: oci/Containerfile.multistage
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/crc-org/crc-extension:latest
push: false
tags: ghcr.io/adrianriobo/crc-extension:latest
29 changes: 12 additions & 17 deletions Dockerfile → oci/Containerfile.multistage
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,22 @@
#
# SPDX-License-Identifier: Apache-2.0

FROM registry.access.redhat.com/ubi9/nodejs-18:latest AS builder
FROM ghcr.io/adrianriobo/crc-extension-builder:latest AS builder

COPY . .

RUN npm install -g yarn \
&& npx yarn install \
&& npx yarn build

RUN mkdir /tmp/extension \
&& cp /opt/app-root/src/package.json \
/opt/app-root/src/LICENSE \
/opt/app-root/src/README.md \
/opt/app-root/src/icon.png /tmp/extension \
&& cp -r /opt/app-root/src/dist /tmp/extension/dist

RUN yarn --network-timeout 180000 \
&& yarn build

FROM scratch

LABEL org.opencontainers.image.title="Red Hat OpenShift Local" \
org.opencontainers.image.description="Integration for Red Hat OpenShift Local clusters" \
org.opencontainers.image.vendor="redhat" \
io.podman-desktop.api.version=">= 0.16.0"

COPY --from=builder /tmp/extension/ /extension
org.opencontainers.image.description="Integration for Red Hat OpenShift Local clusters" \
org.opencontainers.image.vendor="redhat" \
io.podman-desktop.api.version=">= 0.16.0"

COPY package.json /extension/
COPY LICENSE /extension/
COPY icon.png /extension/
COPY README.md /extension/
COPY --from=builder /opt/app-root/src/dist /extension/dist
Loading