From c8f6b2215e1d3a3d70e6862c9e6c9fe3840bc393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gosta=C5=84ski?= <67002661+grixu@users.noreply.github.com> Date: Tue, 2 Jul 2024 15:46:19 +0200 Subject: [PATCH] feat: image provider (#24) * feat: add image provider option * docs: update README --- README.md | 2 ++ build-frontend/action.yml | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 9d7fb44..b14bbab 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ with: docker_registry_url: 'registry.vuestorefront.cloud' npm_registry: 'https://registrynpm.storefrontcloud.io' version: '2.3.0' + image_provider: 'ipx' ``` **Input Parameters:** @@ -41,6 +42,7 @@ with: - `docker_registry_url`: URL to the Docker image registry. Optional field. Defaults to `registry.vuestorefront.cloud`. - `npm_registry`: URL to the private NPM registry. Optional field. Defaults to `https://registrynpm.storefrontcloud.io`. - `version`: Version that will be used for docker image tag. Example: 2.3.0, 3.1.0-rc.1. If not passed, github.sha will be used +- `image_provider`: Select image provider for Nuxt Image. Optional field. Only for Nuxt. Any environment variables needed by an application is needed to be set in the Alokai Console. diff --git a/build-frontend/action.yml b/build-frontend/action.yml index 7d6b1d0..aa4b463 100644 --- a/build-frontend/action.yml +++ b/build-frontend/action.yml @@ -34,6 +34,10 @@ inputs: version: description: 'Version of the app' required: false + image_provider: + description: 'Image provider (only for Nuxt)' + required: false + default: 'ipx' runs: using: 'composite' steps: @@ -93,4 +97,5 @@ runs: NPM_PASS=${{ inputs.npm_pass }} NPM_USER=${{ inputs.npm_user }} NPM_REGISTRY=${{ inputs.npm_registry }} + NUXT_IMAGE_PROVIDER=${{ inputs.image_provider }} GIT_SHA=${{ steps.resolve.outputs.version }}