This commit is contained in:
parent
ac55eced09
commit
c83a77e925
@ -10,7 +10,7 @@ steps:
|
||||
from_secret: build_username
|
||||
dockerfile: Containerfile
|
||||
tags: latest
|
||||
config_json:
|
||||
configjson:
|
||||
from_secret: config_json
|
||||
when:
|
||||
- branch: 'master'
|
||||
|
@ -1,6 +1,15 @@
|
||||
#!/bin/bash
|
||||
echo "$CONFIG_JSON" >> config.json
|
||||
echo "$PLUGIN_CONFIGJSON" >> config.json
|
||||
|
||||
if [ ! -s config.json ]; then
|
||||
echo "no config found"
|
||||
exit 1
|
||||
fi
|
||||
if [[ -z $(grep '[^[:space:]]' "config.json") ]] ; then
|
||||
echo "no config in file"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for d in packs/*/ ; do
|
||||
sticker-pack "$d" --add-to-index web/packs/
|
||||
done
|
||||
rm config.json
|
||||
|
Loading…
Reference in New Issue
Block a user