Commit f03a7ae0 authored by Rodion Kotov's avatar Rodion Kotov :basketball:
Browse files

Merge branch 'develop' into feature/managment-of-trainings

parents 7c11c552 44cd8355
Branches
Tags v5.0.4
2 merge requests!7AQUAT-144 Обновление stable стенда до версии V5.0,!6Version 5.0: Trainings viewer and trainings creation functionality
Pipeline #1051 passed with stages
in 46 seconds
Showing with 9 additions and 4 deletions
......@@ -10,6 +10,9 @@ variables:
before_script:
- nodejs --version
- export VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))
- echo "Using VERSION"
- echo $VERSION
- chmod +x deploy/scripts/download_secret_file.sh
build-dist:
......@@ -19,6 +22,8 @@ build-dist:
script:
- yarn
- yarn build
only:
- tags
artifacts:
paths:
- dist/*
......@@ -29,10 +34,10 @@ build-image:
tags:
- build
script:
- docker buildx build --tag $BASE_IMAGE_FRONTEND_NAME:latest .
- docker push $BASE_IMAGE_FRONTEND_NAME:latest
- docker buildx build --tag $BASE_IMAGE_FRONTEND_NAME:$VERSION .
- docker push $BASE_IMAGE_FRONTEND_NAME:$VERSION
only:
- main
- tags
needs:
- job: build-dist
artifacts: true
......@@ -43,6 +48,6 @@ deploy-beta:
- deploy
script:
- ./deploy/scripts/download_secret_file.sh beta.env $CI_PROJECT_ID $CI_JOB_TOKEN
- FRONTEND_VERSION=latest docker compose -f deploy/docker-compose-beta.yaml --env-file beta.env up -d --force-recreate --no-deps
- FRONTEND_VERSION=$VERSION docker compose -f deploy/docker-compose-beta.yaml --env-file beta.env up -d --force-recreate --no-deps
only:
- main
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment