mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-19 09:45:22 +02:00
Implement CI for UI, Logical Backup Images to GHCR (#2527)
* Implement CI for UI, Logical Backup Images to GHCR --------- Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
This commit is contained in:
co-authored by
Felix Kunde
parent
886cb86797
commit
569fc57fc8
+13
-2
@@ -1,5 +1,16 @@
|
||||
ARG BASE_IMAGE=registry.opensource.zalan.do/library/alpine-3.15:latest
|
||||
FROM ${BASE_IMAGE}
|
||||
ARG NODE_IMAGE=node:14.21.2-alpine
|
||||
|
||||
FROM $NODE_IMAGE AS build
|
||||
|
||||
COPY . /workdir
|
||||
WORKDIR /workdir/app
|
||||
|
||||
RUN npm install &&\
|
||||
npm run build
|
||||
|
||||
FROM $BASE_IMAGE
|
||||
|
||||
LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"
|
||||
|
||||
EXPOSE 8081
|
||||
@@ -34,7 +45,7 @@ COPY start_server.sh /
|
||||
RUN pip3 install -r /requirements.txt
|
||||
|
||||
COPY operator_ui /operator_ui
|
||||
|
||||
COPY --from=build /workdir/operator_ui/static/build /operator_ui/static/build
|
||||
ARG VERSION=dev
|
||||
RUN sed -i "s/__version__ = .*/__version__ = '${VERSION}'/" /operator_ui/__init__.py
|
||||
|
||||
|
||||
Reference in New Issue
Block a user