DEVEX-20:
This commit is contained in:
parent
8916fcd999
commit
24aced89cf
@ -10,7 +10,6 @@ on:
|
|||||||
- devspc/devspace-apiregistry-generator-service
|
- devspc/devspace-apiregistry-generator-service
|
||||||
- devspc/devspace-gateway
|
- devspc/devspace-gateway
|
||||||
- devspc/devspace-apiregistry-core-service
|
- devspc/devspace-apiregistry-core-service
|
||||||
- devspc/devspace-selfkit-ui
|
|
||||||
default: devspc/devspace-apiregistry-generator-service
|
default: devspc/devspace-apiregistry-generator-service
|
||||||
branch:
|
branch:
|
||||||
description: 'Ветка'
|
description: 'Ветка'
|
||||||
|
|||||||
58
.gitea/workflows/build-frontend.yml
Normal file
58
.gitea/workflows/build-frontend.yml
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user