From f4cd1dba63aebd3f7d73ecbfc60cf2c1bb1f96da Mon Sep 17 00:00:00 2001 From: Viktor Farcic Date: Mon, 7 Oct 2024 21:08:58 +0200 Subject: [PATCH] Upgrade --- Dockerfile | 6 +++--- tmp/entities.yaml | 33 --------------------------------- 2 files changed, 3 insertions(+), 36 deletions(-) delete mode 100644 tmp/entities.yaml diff --git a/Dockerfile b/Dockerfile index fc65cff..97e2a60 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-bookworm-slim AS packages +FROM node:20-bookworm-slim AS packages WORKDIR /app ARG SRC=backstage @@ -7,7 +7,7 @@ COPY $SRC/packages packages RUN find packages \! -name "package.json" -mindepth 2 -maxdepth 2 -exec rm -rf {} \+ -FROM node:18-bookworm-slim AS build +FROM node:20-bookworm-slim AS build RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \ @@ -32,7 +32,7 @@ RUN mkdir packages/backend/dist/skeleton packages/backend/dist/bundle \ && tar xzf packages/backend/dist/bundle.tar.gz -C packages/backend/dist/bundle -FROM node:18-bookworm-slim +FROM node:20-bookworm-slim RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \ diff --git a/tmp/entities.yaml b/tmp/entities.yaml deleted file mode 100644 index 251fb91..0000000 --- a/tmp/entities.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -apiVersion: backstage.io/v1alpha1 -kind: Component -metadata: - name: my-cluster -spec: - type: service - lifecycle: production - owner: guests - dependsOn: - - resource:default/eks - - resource:default/node-pool ---- -apiVersion: backstage.io/v1alpha1 -kind: Resource -metadata: - name: eks - description: EKS -spec: - type: managed-resource - owner: guests ---- -apiVersion: backstage.io/v1alpha1 -kind: Resource -metadata: - name: node-pool - description: Node Pool -spec: - type: managed-resource - owner: guests - -# if: ${{ values.traefik.enabled === true }} -# xxx: yyy