This commit is contained in:
2026-05-17 12:25:52 +03:00
parent 6184d6db90
commit 08d1c91fc2
+8 -7
View File
@@ -1,4 +1,5 @@
name: 'Deploy Frontend'
run-name: '${{ inputs.repo_path }} → ${{ inputs.namespace }} [${{ inputs.branch }}]'
on:
workflow_dispatch:
inputs:
@@ -7,8 +8,8 @@ on:
required: true
type: choice
options:
- devspc/devspace-selfkit-ui
default: devspc/devspace-selfkit-ui
- devspace-selfkit-ui
default: devspace-selfkit-ui
namespace:
description: 'Name Space'
required: true
@@ -43,7 +44,7 @@ jobs:
uses: https://git.binom.pw/otp/devops/clone@main
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
repository: ${{ github.event.inputs.repo_path }}
repository: "devspc/${{ github.event.inputs.repo_path }}"
branch: ${{ github.event.inputs.branch }}
- name: Set up Node.js
uses: actions/setup-node@v4 # Use the setup-node action
@@ -110,7 +111,7 @@ jobs:
- name: Build Docker Image
uses: https://git.binom.pw/subochev/devops/build-docker@main
with:
image_name: "otp/${{ github.event.inputs.repo_path }}"
image_name: "otp/devspc/${{ github.event.inputs.repo_path }}"
tags: latest ${{ github.event.inputs.version }}
- name: Kuebrnetus config
run: |
@@ -124,7 +125,7 @@ jobs:
path: 'helms'
- name: Deploy
run: |
pathToHelm='./helms/${{ github.event.inputs.repo_path }}'
pathToHelm='./helms/devspc/${{ github.event.inputs.repo_path }}'
releaseName=$(basename "$pathToHelm")
echo "Release Name: $releaseName"
echo 'WORKSPACE: ${{ github.workspace }}'
@@ -133,8 +134,8 @@ jobs:
--kubeconfig ./ku.yaml \
--create-namespace \
--set-string 'image.version=${{ github.event.inputs.version }}' \
--set-string 'image.name=images.binom.pw/otp/${{ github.event.inputs.repo_path }}' \
--set-string 'repository.name=${{ github.event.inputs.repo_path }}' \
--set-string 'image.name=images.binom.pw/otp/devspc/${{ github.event.inputs.repo_path }}' \
--set-string 'repository.name=devspc/${{ github.event.inputs.repo_path }}' \
--set-string 'repository.branch=${{ github.event.inputs.branch }}' \
--set "imagePullSecrets[0].name=regcred" \
-f ./helms/devspc/stands/values.yaml \