DevOps
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
name: 'Deploy Backend'
|
name: 'Deploy Backend'
|
||||||
run-name: '🚀 ${{ inputs.repo_path }} → ${{ inputs.namespace }} [${{ inputs.branch }}]'
|
run-name: '${{ inputs.repo_path }} → ${{ inputs.namespace }} [${{ inputs.branch }}]'
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
@@ -47,7 +47,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 }}
|
||||||
- uses: https://git.binom.pw/otp/devops/config-gradle@main
|
- uses: https://git.binom.pw/otp/devops/config-gradle@main
|
||||||
- uses: https://git.binom.pw/otp/devops/setup-gradle@main
|
- uses: https://git.binom.pw/otp/devops/setup-gradle@main
|
||||||
@@ -69,7 +69,7 @@ jobs:
|
|||||||
- name: Publishing docker
|
- name: Publishing docker
|
||||||
uses: https://git.binom.pw/otp/devops/docker@main
|
uses: https://git.binom.pw/otp/devops/docker@main
|
||||||
with:
|
with:
|
||||||
image-name: "otp/${{ github.event.inputs.repo_path }}"
|
image-name: "otp/devspc/${{ github.event.inputs.repo_path }}"
|
||||||
tags: ${{ github.event.inputs.version }}
|
tags: ${{ github.event.inputs.version }}
|
||||||
- name: Kuebrnetus config
|
- name: Kuebrnetus config
|
||||||
run: |
|
run: |
|
||||||
@@ -83,7 +83,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 }}'
|
||||||
@@ -92,8 +92,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