Compare commits

3 Commits

Author SHA1 Message Date
julian f7eed33a5b Trigger Komodo Stack redeploy on successful build
Build and Push processor / build (push) Successful in 58s
2026-05-03 16:44:48 +00:00
julian 79089aeb70 Trigger workflow on dev branch; tag image :dev
Build and Push processor / build (push) Successful in 58s
2026-05-03 15:49:12 +00:00
julian d6bb8cb3f8 Switch CI to new Gitea registry; drop Portainer trigger 2026-05-03 15:44:59 +00:00
2 changed files with 16 additions and 6 deletions
+15 -5
View File
@@ -2,7 +2,7 @@ name: Build and Push processor
on: on:
push: push:
branches: [main] branches: [dev]
paths: paths:
- 'src/**' - 'src/**'
- 'test/**' - 'test/**'
@@ -52,7 +52,7 @@ jobs:
- name: Login to Gitea Registry - name: Login to Gitea Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: git.dev.microservices.al registry: git.dev.trmtracking.org
username: ${{ secrets.REGISTRY_USERNAME }} username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }} password: ${{ secrets.REGISTRY_PASSWORD }}
@@ -61,8 +61,18 @@ jobs:
with: with:
context: . context: .
push: true push: true
tags: git.dev.microservices.al/trm/processor:main tags: git.dev.trmtracking.org/trm/processor:dev
- name: Trigger Portainer Deploy - name: Trigger Komodo Stack redeploy
if: success() if: success()
run: curl -X POST "${{ secrets.PORTAINER_WEBHOOK_URL }}" env:
URL: ${{ secrets.KOMODO_STACK_WEBHOOK_URL }}
SECRET: ${{ secrets.KOMODO_WEBHOOK_SECRET }}
run: |
body='{"ref":"refs/heads/dev"}'
sig=$(printf '%s' "$body" | openssl dgst -sha256 -hmac "$SECRET" | awk '{print $2}')
curl -fsS -X POST \
-H 'Content-Type: application/json' \
-H "X-Hub-Signature-256: sha256=$sig" \
-d "$body" \
"$URL"
+1 -1
View File
@@ -5,7 +5,7 @@
# day-to-day development, run `pnpm dev` directly against host-exposed services. # day-to-day development, run `pnpm dev` directly against host-exposed services.
# #
# For STAGE and PRODUCTION deployment, use the multi-service compose in # For STAGE and PRODUCTION deployment, use the multi-service compose in
# the sibling `deploy/` repo (https://git.dev.microservices.al/trm/deploy), # the sibling `deploy/` repo (https://git.dev.trmtracking.org/trm/deploy),
# which references this service by its registry image tag instead of # which references this service by its registry image tag instead of
# building locally. # building locally.
# #