diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 044150b..9fe017a 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -16,6 +16,10 @@ jobs: submodules: recursive path: web + - uses: actions/setup-node@v4 + with: + node-version: "14.18.3" + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 diff --git a/.github/workflows/deploy-ahlava.yml b/.github/workflows/deploy-ahlava.yml deleted file mode 100644 index 60b0777..0000000 --- a/.github/workflows/deploy-ahlava.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: deploy-pubdev -on: - push: - branches: - - 'dev-ahlava' -jobs: - deploy-pubdev: - runs-on: ubuntu-latest - env: - SSH_PRIVATE_KEY: ${{ secrets.PUBDEV_SSH_PRIVATE_KEY }} - SSH_KNOWN_HOSTS: ${{ secrets.PUBDEV_SSH_KNOWN_HOSTS }} - SSH_USER: ${{ secrets.PUBDEV_SSH_USER }} - SSH_HOST: ${{ secrets.PUBDEV_SSH_HOST }} - SSH_DIR: ${{ secrets.PUBDEV_SSH_DIR }} - steps: - - run: mkdir src - - uses: actions/checkout@v2 - with: - fetch-depth: 100 - path: 'src' - - name: sftp copy - shell: bash - run: | - eval `ssh-agent -s` && - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - && - mkdir -p ~/.ssh && - chmod 700 ~/.ssh && - echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts && - chmod 600 ~/.ssh/known_hosts && - echo 'bye' | sftp -oBatchMode=no -r "${SSH_USER}"@"${SSH_HOST}":"/${SSH_DIR}" && - echo "Remote host is reachable" && - cd src && - npm install && - npm run build.pubdev && - cd dist/web-frontend-angular/cs && - { echo 'put .'; echo bye; } | sftp -oBatchMode=no -r "${SSH_USER}"@"${SSH_HOST}":"/${SSH_DIR}" diff --git a/.github/workflows/deploy-kleobis.yml b/.github/workflows/deploy-kleobis.yml index fb4a158..5b1df2a 100644 --- a/.github/workflows/deploy-kleobis.yml +++ b/.github/workflows/deploy-kleobis.yml @@ -14,6 +14,9 @@ jobs: with: fetch-depth: 100 path: 'src' + - uses: actions/setup-node@v4 + with: + node-version: "14.18.3" - name: prepare dist tar shell: bash run: |