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

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