Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adélie Linux
site-ng
Commits
84c99d78
Commit
84c99d78
authored
Aug 23, 2021
by
Zach van Rijn
Browse files
Dockerize 'convert' in the publish script.
parent
7abd40f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
publish
View file @
84c99d78
...
...
@@ -20,11 +20,14 @@ chmod 755 ${TEMP};
##
# .psd --> .jpg ONLY in 'src/'
#
docker run
-v
$(
pwd
)
:/x
-w
/x
--rm
-i
alpine:3.14
<<
'
EOF
'
apk add imagemagick;
find
${
HERE
}
-type f -name "*.psd" | while read k; do
f="
${
k
#*
${
HERE
}}
";
mkdir -p "
${
TEMP
}${
f
%/*
}
";
convert "
${
k
}
[0]" -strip "
${
TEMP
}${
f
%*.psd
}
.jpg";
done
EOF
##
# template injection
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment