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