GithubHelp home page GithubHelp logo

storefront-deployment's Introduction

Storefront Deployment

Welcome to Storefront Deployment repository. Here, you can found a Github Actions we produce to simplify deployments of Storefronts to the Console & Cloud.

There are four actions:

  • build-middleware
  • build-frontend
  • deploy

With those four you can easily compose the deployment script for your needs.

Explanation of the GitHub Actions

build-frontend

uses: vuestorefront/storefront-deployment/build-frontend@v1
with:
  project_name: ${{ secrets.PROJECT_NAME }}
  cloud_username: ${{ secrets.CLOUD_USERNAME }}
  cloud_password: ${{ secrets.CLOUD_PASSWORD }}
  cloud_region: ${{ secrets.CLOUD_REGION }}
  npm_email: ${{ secrets.NPM_EMAIL }}
  npm_user: ${{ secrets.NPM_USER }}
  npm_pass: ${{ secrets.NPM_PASS }}
  frontend: 'next'
  docker_registry_url: 'registry.vuestorefront.cloud'
  npm_registry: 'https://registrynpm.storefrontcloud.io'
  api_base_url: format('https://{0}.{1}.{2}/api', secrets.PROJECT_NAME, secrets.CLOUD_REGION, 'gcp.storefrontcloud.io')
  multistore_enabled: false
  image_provider: 'ipx'
  image_provider_upload_url: ${{ secrets.IMAGE_PROVIDER_UPLOAD_URL }}
  image_provider_fetch_url: ${{ secrets.IMAGE_PROVIDER_FETCH_URL }}

Input Parameters:

  • project_name: Project name in Console. Required field.
  • cloud_username: Cloud API and Docker registry username. Required field.
  • cloud_password: Cloud API and Docker registry password. Required field.
  • cloud_region: Region where the environment is set up in the Console. Required field.
  • npm_email: Email address required for logging into the private NPM registry. Required field.
  • npm_user: Username for the private NPM registry. Required field.
  • npm_pass: Password for the private NPM registry. Required field.
  • frontend: Frontend choice - Next (next) or Nuxt (nuxt). Optional field. Defaults to next.
  • 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.
  • api_base_url: URL for Middleware. Optional field. The default value is composed of the Console project name, region, Alokai Cloud domain, and the default subpath which is /api.
  • image_provider: Switch the image provider on the Nuxt frontend. More details in the Nuxt image docs. Know the differences between the Nuxt & Next image modules and their configuration. Optional field. The default value is undefined because Nuxt automatically falls back to ipx
  • image_provider_upload_url: URL for uploading images to the selected image provider (e.g., Cloudinary). Do not set this value if you are not using any image provider. Any value here will attempt to run the module in the frontend code, resulting in an error and frontend unavailability. Optional field.
  • image_provider_fetch_url: URL for fetching images from the selected image provider. Optional field.

build-middleware

uses: vuestorefront/storefront-deployment/build-middleware@v1
with:
  project_name: ${{ secrets.PROJECT_NAME }}
  cloud_username: ${{ secrets.CLOUD_USERNAME }}
  cloud_password: ${{ secrets.CLOUD_PASSWORD }}
  npm_email: ${{ secrets.NPM_EMAIL }}
  npm_user: ${{ secrets.NPM_USER }}
  npm_pass: ${{ secrets.NPM_PASS }}
  docker_registry_url: 'registry.vuestorefront.cloud'
  npm_registry: 'https://registrynpm.storefrontcloud.io'

Input Parameters:

  • project_name: Project name in Console. Required field.
  • cloud_username: Cloud API and Docker registry username. Required field.
  • cloud_password: Cloud API and Docker registry password. Required field.
  • npm_email: Email address required for logging into the private NPM registry. Required field.
  • npm_user: Username for the private NPM registry. Required field.
  • npm_pass: Password for the private NPM registry. Required field.
  • 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.

deploy

uses: vuestorefront/storefront-deployment/deploy@v1
with:
  project_name: ${{ secrets.PROJECT_NAME }}
  cloud_username: ${{ secrets.CLOUD_USERNAME }}
  cloud_password: ${{ secrets.CLOUD_PASSWORD }}
  cloud_region: ${{ secrets.CLOUD_REGION }}
  docker_registry_url: 'registry.vuestorefront.cloud'
  console_api: 'https://api.platform.vuestorefront.io'

Input Parameters:

  • project_name: Project name in Console. Required field.
  • cloud_username: Cloud API and Docker registry username. Required field.
  • cloud_password: Cloud API and Docker registry password. Required field.
  • cloud_region: Region where the environment is set up in the Console. Required field.
  • docker_registry_url: URL to the Docker image registry. Optional field. Defaults to registry.vuestorefront.cloud.
  • console_api_url: URL to the Console. Optional field. Defaults to https://api.platform.vuestorefront.io.

storefront-deployment's People

Contributors

grixu avatar jagoral avatar lukaszjedrasik avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.