Compare commits

..

No commits in common. "62bb39d493c48f4fc330f07daf1f40db43ac9849" and "4b0784a673cffac82d18f6e2395575eb2a656db7" have entirely different histories.

2 changed files with 3 additions and 32 deletions

View File

@ -5,8 +5,7 @@ steps:
- name: building-clojure-app - name: building-clojure-app
image: clojure:tools-deps image: clojure:tools-deps
commands: commands:
- echo "clear out local cache in case we are running locally" - ls -la
- rm -Rf /drone/src/.cpcache
- clojure -m figwheel.main --build-once prod - clojure -m figwheel.main --build-once prod
- name: compress - name: compress
@ -14,9 +13,5 @@ steps:
commands: commands:
- ls -la - ls -la
- apk add gzip - apk add gzip
- cd /drone/src/resources/public/ - resources/public
- rm /drone/src/resources/public/*.gz - gzip * -k
- 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

View File

@ -1,24 +0,0 @@
stages:
- build
- compress
build:
stage: build
image: clojure:tools-deps
script:
- clojure -m figwheel.main --build-once prod
compress:
stage: 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
- mv release.tar.gz ../../
artifacts:
paths:
- release.tar.gz