updates?
All checks were successful
build / deploy (push) Successful in 2m19s

This commit is contained in:
stryan 2025-01-20 21:11:00 -05:00
parent 5446cef8aa
commit 5e864a3e70
4 changed files with 11 additions and 26 deletions

View File

@ -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

View File

@ -15,6 +15,10 @@ jobs:
registry: git.saintnet.tech registry: git.saintnet.tech
username: ${{ gitea.actor }} username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN }}
- name: Generate config
env:
CONFIGJSON: ${{ secrets.CONFIG }}
run: "./generate.sh"
- name: Build and push - name: Build and push
env: env:
IMAGE_NAME: saintnet_stickers IMAGE_NAME: saintnet_stickers

View File

@ -1,9 +1,9 @@
#!/bin/bash #!/bin/bash
if [ ! -f config.json ]; then if [ ! -f config.json ]; then
echo "no config found during sitcker generation" echo "no config found during sticker generation"
exit 1 exit 1
fi fi
for d in packs/*/ ; do for d in packs/*/; do
sticker-pack "$d" --add-to-index web/packs/ sticker-pack "$d" --add-to-index web/packs/
done done
rm config.json rm config.json

View File

@ -8,8 +8,8 @@ if [ ! -s config.json ]; then
echo "no config found" echo "no config found"
exit 1 exit 1
fi fi
if [[ -z $(grep '[^[:space:]]' "config.json") ]] ; then if [[ -z $(grep '[^[:space:]]' "config.json") ]]; then
echo "no config in file" echo "no config in file"
rm config.json rm config.json
exit 1 exit 1
fi fi