Versioned yarn.lock, fixed docker build

This commit is contained in:
Igor Scheller 2019-08-19 10:48:11 +02:00
parent 030e1ab38d
commit 2e0c82ea05
5 changed files with 5371 additions and 6 deletions

1
.gitignore vendored
View File

@ -3,7 +3,6 @@
.~*
*.tmp
*.temp
*.lock
*.DS_Store
.*.swp
*.out

View File

@ -34,13 +34,11 @@ build-image.nginx:
expire_in: 1 day
paths:
- ./public/assets
- ./yarn.lock
script:
- docker build --pull -t "${TEST_IMAGE}-nginx" -f contrib/nginx/Dockerfile .
- docker push "${TEST_IMAGE}-nginx"
- instance=$(docker create "${TEST_IMAGE}-nginx")
- docker cp "${instance}:/var/www/public/assets" public/
- docker cp "${instance}:/var/www/yarn.lock" .
- docker rm "${instance}"
build-image:
@ -124,7 +122,6 @@ build-release-file:
script:
- rsync -vAax "${DOCROOT}" "${DOCROOT}/.babelrc" "${DOCROOT}/.browserslistrc" release/
- rsync -vAax public/assets release/public/
- rsync -vAax yarn.lock release/
deploy-staging:
<<: *deploy_definition

View File

@ -6,7 +6,7 @@ RUN composer --no-ansi dump-autoload --optimize
# Intermediate container for less layers
FROM alpine as data
COPY .babelrc .browserslistrc composer.json LICENSE package.json README.md webpack.config.js /app/
COPY .babelrc .browserslistrc composer.json LICENSE package.json README.md webpack.config.js yarn.lock /app/
COPY bin/ /app/bin
COPY config/ /app/config
COPY db/ /app/db

View File

@ -9,4 +9,3 @@ FROM nginx:alpine
RUN mkdir -p /var/www/public/ && touch /var/www/public/index.php
COPY contrib/nginx/nginx.conf /etc/nginx/nginx.conf
COPY --from=themes /app/public/assets /var/www/public/assets/
COPY --from=themes /app/yarn.lock /var/www/

5370
yarn.lock Normal file

File diff suppressed because it is too large Load Diff