mirror of
https://github.com/elyby/accounts.git
synced 2024-11-08 13:42:30 +05:30
Completely remove frontend from this repository
This commit is contained in:
parent
b20825a051
commit
07546bc7e9
@ -3,9 +3,6 @@
|
||||
|
||||
# vendor будет заполнен уже внутри контейнера
|
||||
vendor
|
||||
# Всё, что динамично на фронте
|
||||
frontend/node_modules
|
||||
frontend/dist
|
||||
|
||||
# Все временные файлы
|
||||
*/runtime
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -27,3 +27,6 @@ npm-debug*
|
||||
# Codeception
|
||||
codeception.yml
|
||||
*/codeception.yml
|
||||
|
||||
# Frontend
|
||||
frontend
|
||||
|
@ -51,44 +51,13 @@ test backend:
|
||||
- ./docker/php/wait-for-it.sh "${DB_HOST}:3306" -s -t 0 -- "php yii migrate/up --interactive=0"
|
||||
- vendor/bin/codecept run
|
||||
|
||||
test frontend:
|
||||
image: node:9.2.1-alpine
|
||||
stage: test
|
||||
cache:
|
||||
paths:
|
||||
- frontend/node_modules
|
||||
before_script:
|
||||
# Enable SSL support for wget
|
||||
- apk add --update openssl
|
||||
# https://github.com/facebook/flow/issues/3649#issuecomment-414691014
|
||||
- wget -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
|
||||
- wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk
|
||||
- apk add glibc-2.28-r0.apk
|
||||
script:
|
||||
- cd frontend
|
||||
- yarn run build:install
|
||||
- yarn run lint
|
||||
- yarn flow
|
||||
- yarn test
|
||||
|
||||
build:production:
|
||||
image: docker:18.02
|
||||
stage: build
|
||||
variables:
|
||||
GA_ID: "UA-45299905-3"
|
||||
SENTRY_CDN: "https://088e7718236a4f91937a81fb319a93f6@sentry.ely.by/2"
|
||||
before_script:
|
||||
- docker login -u gitlab-ci -p $CI_BUILD_TOKEN registry.ely.by
|
||||
- export VERSION="${CI_COMMIT_TAG:-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA:0:7}}"
|
||||
- echo "$SSH_PRIVATE_KEY" > id_rsa
|
||||
- |
|
||||
echo "
|
||||
module.exports = {
|
||||
version: '$VERSION',
|
||||
ga: {id: '$GA_ID'},
|
||||
sentryCdn: '$SENTRY_CDN',
|
||||
};
|
||||
" > frontend/config/env.js
|
||||
- sed -i"" -e "s/{{PLACE_VERSION_HERE}}/$VERSION/g" common/config/config.php
|
||||
script:
|
||||
- export IMAGE_NAME="$CONTAINER_IMAGE:latest"
|
||||
|
16
Dockerfile
16
Dockerfile
@ -1,17 +1,3 @@
|
||||
FROM node:9.11.2-alpine as frontend
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./frontend/package.json ./
|
||||
COPY ./frontend/scripts ./scripts
|
||||
COPY ./frontend/webpack-utils ./webpack-utils
|
||||
COPY ./frontend/yarn.lock ./
|
||||
RUN yarn build:install
|
||||
|
||||
COPY ./frontend .
|
||||
RUN yarn build:quiet
|
||||
|
||||
|
||||
FROM php:7.2.7-fpm-alpine3.7
|
||||
|
||||
# bash needed to support wait-for-it script
|
||||
@ -71,8 +57,6 @@ COPY ./docker/php/*.ini /usr/local/etc/php/conf.d/
|
||||
COPY ./docker/php/docker-entrypoint.sh /usr/local/bin/
|
||||
COPY ./docker/cron/* /etc/cron.d/
|
||||
|
||||
COPY --from=frontend /app/dist /var/www/html/frontend/dist
|
||||
|
||||
COPY ./api /var/www/html/api/
|
||||
COPY ./common /var/www/html/common/
|
||||
COPY ./console /var/www/html/console/
|
||||
|
Loading…
Reference in New Issue
Block a user