Skip to content

Commit

Permalink
feat: image provider (#24)
Browse files Browse the repository at this point in the history
* feat: add image provider option

* docs: update README
  • Loading branch information
grixu authored Jul 2, 2024
1 parent a50306e commit c8f6b22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:**
Expand All @@ -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.

Expand Down
5 changes: 5 additions & 0 deletions build-frontend/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}

0 comments on commit c8f6b22

Please sign in to comment.