Update build files.

This commit is contained in:
Oliver Marks 2019-09-21 09:02:48 +01:00
parent 4b0784a673
commit d5da8d5143
2 changed files with 25 additions and 3 deletions

View File

@ -5,7 +5,8 @@ steps:
- name: building-clojure-app - name: building-clojure-app
image: clojure:tools-deps image: clojure:tools-deps
commands: commands:
- ls -la - echo "clear out local cache in case we are running locally"
- rm -Rf /drone/src/.cpcache
- clojure -m figwheel.main --build-once prod - clojure -m figwheel.main --build-once prod
- name: compress - name: compress
@ -13,5 +14,9 @@ steps:
commands: commands:
- ls -la - ls -la
- apk add gzip - apk add gzip
- resources/public - cd /drone/src/resources/public/
- gzip * -k - rm /drone/src/resources/public/*.gz
- rm /drone/src/resources/public/webfonts/*.gz
- gzip *.css *.js *.html *.png -k
- gzip ./webfonts/*.woff2 -k
- tar -czvf release.tar.gz *.gz ./webfonts/*.gz

17
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,17 @@
build:
image: clojure:tools-deps
script:
- clojure -m figwheel.main --build-once prod
compress:
image: alpine
script:
- ls -la
- apk add gzip
- cd resources/public/
- gzip *.css *.js *.html *.png -k
- gzip ./webfonts/*.woff2 -k
- tar -czvf release.tar.gz *.gz ./webfonts/*.gz
artifacts:
paths:
- resources/public/release.tar.gz