diff --git a/build-push-image/README.md b/build-push-image/README.md index bf85459..1b3f731 100644 --- a/build-push-image/README.md +++ b/build-push-image/README.md @@ -20,7 +20,7 @@ The list of arguments, that are used in GH Action: | `build-args` | string | ✅ | | Multiline string to describe build arguments that will be used during dockerization | | `docker-file` | string | | ./davinci/packages/ci/src/configs/docker/Dockerfile.gha-deploy | pathname to Docker file | | `davinci-branch` | string | | master | Custom davinci branch | -| `node-version` | string | | 18 | Node.js version used. The action is guaranteed to work only with Node.js@18 (default value) | +| `node-version` | string | | 20 | Node.js version used. The action is guaranteed to work only with Node.js@18 (default value) | ### Outputs diff --git a/build-push-image/action.yml b/build-push-image/action.yml index 5cf4d7f..3320aaf 100644 --- a/build-push-image/action.yml +++ b/build-push-image/action.yml @@ -30,7 +30,7 @@ inputs: default: 'master' node-version: required: false - default: 18 + default: 20 description: 'Node.js version used. The action is guaranteed to work only with Node.js@18 (default value)' runs: diff --git a/build-push-release-image/README.md b/build-push-release-image/README.md index 8835fc0..0a658fd 100644 --- a/build-push-release-image/README.md +++ b/build-push-release-image/README.md @@ -17,6 +17,7 @@ The list of arguments, that are used in GH Action: | `environment` | enum<
`temploy`,
`staging`,
`production`,
> | | staging | Used to determine additional procedures while creating a Docker image | | `dist-folder` | string | | ./dist | Path to the folder with the built project | | `scope` | string | | | Used to determine the scope of the built project. Usefull in multihost monorepo projects to build only one project. | +| `node-version` | string | | 20 | Node.js version used. The action is guaranteed to work only with Node.js@18 (default value) | ### Outputs diff --git a/build-push-release-image/action.yml b/build-push-release-image/action.yml index f504b04..eca3b05 100644 --- a/build-push-release-image/action.yml +++ b/build-push-release-image/action.yml @@ -25,11 +25,15 @@ inputs: required: false default: '' description: Used to determine the scope of the built project. Usefull in multihost monorepo projects to build only one project. + node-version: + required: false + default: 20 + description: 'Node.js version used. The action is guaranteed to work only with Node.js@18 (default value)' runs: using: composite steps: - - uses: toptal/davinci-github-actions/yarn-install@v6.0.0 + - uses: toptal/davinci-github-actions/yarn-install@v13.0.2 - name: Build shell: bash @@ -42,11 +46,12 @@ runs: yarn lerna run build --scope=${{ inputs.scope}} fi - - uses: toptal/davinci-github-actions/build-push-image@v6.0.0 + - uses: toptal/davinci-github-actions/build-push-image@fx-5294-fix-gh-actions with: sha: ${{ inputs.sha }} image-name: ${{ inputs.repository-name }}-release environment: ${{ inputs.environment }} + node-version: ${{ inputs.node-version }} docker-file: ./davinci/packages/ci/src/configs/docker/Dockerfile.gha-deploy build-args: | ENV_RUNTIME_ENTRYPOINT=./davinci/packages/ci/src/configs/docker/env-runtime.entrypoint.sh