enonic / xp-tool-enonic-ci

0 stars 0 forks source link

NPM and Yarn for builds #1

Closed diegopasten closed 11 months ago

diegopasten commented 4 years ago

NPM and yarn are common tools used in builds, should be added to the image.

VirtueMe commented 4 years ago

I solved this with the following setup for github actions:

name: Enonic CI

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: Build, Test and Deploy app
        uses: docker://enonic/enonic-ci:7.2
        env:
          ENONIC_CLI_REMOTE_URL: ${{ secrets.ENONIC_CLI_REMOTE_URL }}
          ENONIC_CLI_REMOTE_USER: ${{ secrets.ENONIC_CLI_REMOTE_USER }}
          ENONIC_CLI_REMOTE_PASS: ${{ secrets.ENONIC_CLI_REMOTE_PASS }}
        with:
          args: bash -c "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash && export NVM_DIR=\"$HOME/.nvm\" && [ -s \"$NVM_DIR/nvm.sh\" ] && \. \"$NVM_DIR/nvm.sh\" && nvm install 12 && npm install && enonic project build && enonic app install --file build/libs/*.jar"
rymsha commented 1 year ago

there is a separate image enonic-ci:7.13-node. We plan to drop -node image and include node tools into base image. enonic-ci:7.14

jsi commented 11 months ago

Task completed with this commit.