DEVEX-20:

This commit is contained in:
subochev 2025-12-26 17:01:59 +03:00
parent 8916fcd999
commit 24aced89cf
2 changed files with 58 additions and 1 deletions

View File

@ -10,7 +10,6 @@ on:
- devspc/devspace-apiregistry-generator-service
- devspc/devspace-gateway
- devspc/devspace-apiregistry-core-service
- devspc/devspace-selfkit-ui
default: devspc/devspace-apiregistry-generator-service
branch:
description: 'Ветка'

View File

@ -0,0 +1,58 @@
name: 'Build Frontend'
on:
workflow_dispatch:
inputs:
repo_path:
description: 'Репозиторий'
required: true
type: choice
options:
- devspc/devspace-selfkit-ui
default: devspc/devspace-selfkit-ui
branch:
description: 'Ветка'
required: true
type: string
default: master
version:
description: 'Версия образа'
required: true
type: number
jobs:
deploy-dev:
name: 'Deploy to dev'
runs-on: ubuntu-latest
steps:
- name: Cloning2
uses: https://git.binom.pw/otp/devops/clone@main
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
repository: ${{ 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
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4 # Use the setup-node action
with:
node-version: 24
cache: 'npm'
- name: Building
run: |
npm run build
# - name: Building
# run: |
# ./gradlew bootJar --no-daemon -x cyclonedxBom
# echo 'Jar in libs folder'
# ls ./build/libs
# - name: Publishing docker
# uses: https://git.binom.pw/otp/devops/docker@main
# with:
# image-name: "otp/${{ github.event.inputs.repo_path }}"
# tags: ${{ github.event.inputs.version }}
- name: 'Cleanup'
if: always()
shell: bash
run: |
echo 'Cleaning...'
rm -rf ~/.ssh/config
rm -rf ~/.ssh/my_key