@ -3,7 +3,6 @@
.~*
*.tmp
*.temp
*.lock
*.DS_Store
.*.swp
*.out
@ -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:
- rsync -vAax "${DOCROOT}" "${DOCROOT}/.babelrc" "${DOCROOT}/.browserslistrc" release/
- rsync -vAax public/assets release/public/
- rsync -vAax yarn.lock release/
deploy-staging:
<<: *deploy_definition
@ -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
@ -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/