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
|
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
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user