CI: unified admin build (same-origin), sha-* tags and stage promote.

This commit is contained in:
2026-07-09 23:04:53 +03:00
parent 95846bde1e
commit f506ed4f95
4 changed files with 38 additions and 20 deletions
+11 -2
View File
@@ -5,12 +5,19 @@ on:
branches: [master, main]
workflow_dispatch:
env:
REGISTRY: git.sabilin.com/eventhub
jobs:
deploy-ift-admin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Compute image tag
id: meta
run: echo "tag=sha-${GITHUB_SHA::12}" >> "$GITHUB_OUTPUT"
- uses: actions/setup-node@v4
with:
node-version: '20'
@@ -34,7 +41,9 @@ jobs:
with:
context: .
push: true
tags: git.sabilin.com/eventhub/eventhub-admin-ui:ift
tags: |
${{ env.REGISTRY }}/eventhub-admin-ui:${{ steps.meta.outputs.tag }}
${{ env.REGISTRY }}/eventhub-admin-ui:ift
- name: Deploy admin on IFT via SSH
uses: appleboy/ssh-action@v0.1.5
@@ -45,4 +54,4 @@ jobs:
script: |
export REGISTRY_USER='${{ secrets.REGISTRY_USER }}'
export REGISTRY_PASSWORD='${{ secrets.REGISTRY_PASSWORD }}'
/opt/eventhub-ift/devops/scripts/deploy-service.sh ift admin
/opt/eventhub-ift/devops/scripts/deploy-service.sh ift admin ${{ steps.meta.outputs.tag }}