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 }} - 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