2025-01-30 11:18:46: merge [main:b9821e005f1c0b768ebf633a2e1e4e6dab6969d8];

This commit is contained in:
txix committed 2025-01-30 11:18:46 +03:00
1 parent e730b5ace3
commit 180cdb750e
3 files changed
+45

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
docker-build:
image: docker:latest
stage: build
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- export VERSION=`sh version.sh`
- echo $VERSION
- echo $CI_DOCKER_FILE
- echo $CI_REGISTRY
script:
- set
- mkdir -p migrations
- docker build -f "$CI_DOCKER_FILE" --force-rm --build-arg="version=$VERSION" --build-arg="app_name=$CI_PROJECT_NAME" --pull -t "$CI_REGISTRY/$CI_PROJECT_NAME:$VERSION" .
- |
docker tag "$CI_REGISTRY/$CI_PROJECT_NAME:$VERSION" "$CI_REGISTRY/$CI_PROJECT_NAME:latest"
docker push "$CI_REGISTRY/$CI_PROJECT_NAME:$VERSION"
docker push "$CI_REGISTRY/$CI_PROJECT_NAME:latest"
docker rmi -f "$CI_REGISTRY/$CI_PROJECT_NAME:$VERSION"
docker rmi -f "$CI_REGISTRY/$CI_PROJECT_NAME:latest"
- docker logout $CI_REGISTRY
+21
View File
@@ -0,0 +1,21 @@
FROM dockerhub.mos.ru/mosos/arbat:15.5 as builder-deps
RUN zypper --no-gpg-checks update -y && zypper --no-gpg-checks install -y nodejs14 yarn
WORKDIR /usr/src/app
RUN yarn config set "strict-ssl" false
RUN yarn config set "registry" https://repo-mirror.mos.ru/repository/yarn-central/
RUN yarn config list
RUN yarn --ignore-engines install
COPY . ./
RUN sed -i 's/github.com/repo-mirror.mos.ru\/repository\/raw-github/g' package.json
RUN sed -i 's/registry.yarnpkg.com/repo-mirror.mos.ru\/repository\/yarn-central/g' yarn.lock
RUN yarn --ignore-engines build
FROM dockerhub.mos.ru/mosos/arbat:15.5
RUN cp /usr/share/zoneinfo/Europe/Moscow /etc/localtime
RUN echo "Europe/Moscow" > /etc/timezone
RUN zypper --no-gpg-checks update -y && zypper --no-gpg-checks install -y nginx
COPY cfg/80_isp-admin-ui.conf /etc/nginx/conf.d/80_isp-admin-ui.conf
COPY --from=build-deps /usr/src/app/build /opt/msp/isp-admin-ui
+1
View File
@@ -0,0 +1 @@
grep version package.json | sed 's/.*"version": "\(.*\)".*/\1/'