This commit is contained in:
parent
5446cef8aa
commit
5e864a3e70
19
.drone.yml
19
.drone.yml
@ -1,19 +0,0 @@
|
||||
kind: pipeline
|
||||
name: default
|
||||
steps:
|
||||
- name: build-container
|
||||
image: plugins/docker
|
||||
environment:
|
||||
CONFIG_JSON:
|
||||
from_secret: config_json
|
||||
settings:
|
||||
repo: git.saintnet.tech/stryan/saintnet_stickers
|
||||
registry: git.saintnet.tech
|
||||
password:
|
||||
from_secret: build_pass
|
||||
username:
|
||||
from_secret: build_username
|
||||
dockerfile: Containerfile
|
||||
tags: latest
|
||||
secrets_from_env:
|
||||
- pack_config=CONFIG_JSON
|
@ -15,6 +15,10 @@ jobs:
|
||||
registry: git.saintnet.tech
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
- name: Generate config
|
||||
env:
|
||||
CONFIGJSON: ${{ secrets.CONFIG }}
|
||||
run: "./generate.sh"
|
||||
- name: Build and push
|
||||
env:
|
||||
IMAGE_NAME: saintnet_stickers
|
||||
|
@ -1,9 +1,9 @@
|
||||
#!/bin/bash
|
||||
if [ ! -f config.json ]; then
|
||||
echo "no config found during sitcker generation"
|
||||
echo "no config found during sticker generation"
|
||||
exit 1
|
||||
fi
|
||||
for d in packs/*/ ; do
|
||||
for d in packs/*/; do
|
||||
sticker-pack "$d" --add-to-index web/packs/
|
||||
done
|
||||
rm config.json
|
||||
|
@ -8,7 +8,7 @@ if [ ! -s config.json ]; then
|
||||
echo "no config found"
|
||||
exit 1
|
||||
fi
|
||||
if [[ -z $(grep '[^[:space:]]' "config.json") ]] ; then
|
||||
if [[ -z $(grep '[^[:space:]]' "config.json") ]]; then
|
||||
echo "no config in file"
|
||||
rm config.json
|
||||
exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user