From e3fe2e33206be47da41053a54c09d81cd3710e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Hlav=C3=A1=C4=8Dek?= Date: Wed, 13 Nov 2024 09:28:34 +0100 Subject: [PATCH] chore(docker): use correct node version --- .github/workflows/build-docker.yml | 4 ++++ .github/workflows/deploy-ahlava.yml | 36 ---------------------------- .github/workflows/deploy-kleobis.yml | 3 +++ 3 files changed, 7 insertions(+), 36 deletions(-) delete mode 100644 .github/workflows/deploy-ahlava.yml diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 044150b8..9fe017ab 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 60b0777e..00000000 --- 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 fb4a158e..5b1df2a6 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: |