Adds a shared .gitea/scripts/komodo-deploy.sh that calls the Komodo /execute/DeployStack API after the image is pushed, then polls /read/GetUpdate until the deploy completes. A push webhook cannot do this correctly: it fires before the image exists in the registry, so Komodo would redeploy the previous :latest. - docker.yml deploys stack 'qbit-maid' (required) - docker-dev.yml deploys vars.KOMODO_STACK_DEV, skipped when unset
This commit is contained in:
1 parent
f1489ba8a8
commit
ef002b2fce
4 files changed
+300
-134
No files matched your search
@@ -27,4 +27,16 @@ jobs:
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
push: true
|
||||
tags: git.jonb.io/jblu/qbit-maid:latest
|
||||
tags: git.jonb.io/jblu/qbit-maid:latest
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
-
|
||||
name: Deploy to Komodo
|
||||
env:
|
||||
KOMODO_URL: '${{ secrets.KOMODO_URL }}'
|
||||
KOMODO_API_KEY: '${{ secrets.KOMODO_API_KEY }}'
|
||||
KOMODO_API_SECRET: '${{ secrets.KOMODO_API_SECRET }}'
|
||||
KOMODO_TARGET: 'qbit-maid'
|
||||
KOMODO_REQUIRED: 'true'
|
||||
run: ./.gitea/scripts/komodo-deploy.sh
|
||||
Reference in new issue
Block a user