Skip to content

Commit

Permalink
Update build and push image GH Action
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaklygin committed May 14, 2024
1 parent a2ea2bc commit 6c4c771
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build-push-image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion build-push-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions build-push-release-image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The list of arguments, that are used in GH Action:
| `environment` | enum<<br/>`temploy`,<br/>`staging`,<br/>`production`,<br/>> | | 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

Expand Down
9 changes: 7 additions & 2 deletions build-push-release-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6c4c771

Please sign in to comment.