feat: add initial multi-environment CI/CD pipeline POC #1

Merged
nietzshn merged 20 commits from dev into staging 2026-06-02 22:04:02 -06:00
2 changed files with 5 additions and 5 deletions
Showing only changes of commit cb12d68fbe - Show all commits
+1 -1
View File
@@ -17,7 +17,7 @@ LABEL org.opencontainers.image.created="${BUILD_DATE}"
LABEL org.opencontainers.image.revision="${GIT_COMMIT}" LABEL org.opencontainers.image.revision="${GIT_COMMIT}"
LABEL org.opencontainers.image.source="https://git.kubistudio.cloud/kubistudio/cicd-multi-env-pipeline-poc" LABEL org.opencontainers.image.source="https://git.kubistudio.cloud/kubistudio/cicd-multi-env-pipeline-poc"
RUN apk add --no-cache curl gettext RUN apk add --no-cache curl
COPY nginx.conf /etc/nginx/nginx.conf COPY nginx.conf /etc/nginx/nginx.conf
COPY src/ /usr/share/nginx/html/ COPY src/ /usr/share/nginx/html/
+4 -4
View File
@@ -21,9 +21,9 @@ window.__ENV__ = {
}; };
EOF EOF
export APP_ENV APP_VERSION sed -i \
-e "s/\${APP_ENV:-development}/${APP_ENV}/g" \
envsubst '${APP_ENV} ${APP_VERSION}' < /etc/nginx/nginx.conf > /etc/nginx/nginx.conf.tmp -e "s/\${APP_VERSION:-0.0.0}/${APP_VERSION}/g" \
mv /etc/nginx/nginx.conf.tmp /etc/nginx/nginx.conf /etc/nginx/nginx.conf
exec "$@" exec "$@"