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