feat: add initial multi-environment CI/CD pipeline POC #1
+1
-1
@@ -17,7 +17,7 @@ LABEL org.opencontainers.image.created="${BUILD_DATE}"
|
||||
LABEL org.opencontainers.image.revision="${GIT_COMMIT}"
|
||||
LABEL org.opencontainers.image.source="https://git.kubistudio.cloud/kubistudio/cicd-multi-env-pipeline-poc"
|
||||
|
||||
RUN apk add --no-cache curl
|
||||
RUN apk add --no-cache curl gettext
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY src/ /usr/share/nginx/html/
|
||||
|
||||
@@ -21,4 +21,9 @@ window.__ENV__ = {
|
||||
};
|
||||
EOF
|
||||
|
||||
export APP_ENV APP_VERSION
|
||||
|
||||
envsubst '${APP_ENV} ${APP_VERSION}' < /etc/nginx/nginx.conf > /etc/nginx/nginx.conf.tmp
|
||||
mv /etc/nginx/nginx.conf.tmp /etc/nginx/nginx.conf
|
||||
|
||||
exec "$@"
|
||||
|
||||
Reference in New Issue
Block a user