mirror of
https://github.com/creyD/crush_action.git
synced 2026-04-12 11:40:30 +02:00
Added support for jpg files
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM node:lts-alpine3.9
|
||||
RUN apk update && apk upgrade && apk add --no-cache bash git openssh optipng
|
||||
RUN apk update && apk upgrade && apk add --no-cache bash git openssh optipng jpegoptim
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
@@ -37,6 +37,7 @@ _git_push() {
|
||||
|
||||
# PROGRAM
|
||||
find -type f -name "*.png" -exec optipng -nc -nb -o7 {} \;
|
||||
find -type f -name "*.jpg" -exec jpegoptim -nc -nb -o7 {} \;
|
||||
|
||||
# To keep runtime good, just continue if something was changed
|
||||
if _git_changed;
|
||||
|
||||
Reference in New Issue
Block a user