CI: unified admin build (same-origin), sha-* tags and stage promote.
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user