Skip to content

momentum-xyz/deploy-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Github action to deploy Odyssey momentum projects

Shared build steps for Odyssey projects to deploy a project. Requires the project to be build (so docker images pushed which can be picked up by the Kubernetes environment).

⚠️ Currently only deploys development version

Usage

      - id: deploy
        if: ${{ github.ref == 'refs/heads/develop'}}
        uses: OdysseyMomentumExperience/deploy-action@v1
        with:
          project-name: ${{ env.PROJECT_NAME }}
          version: ${{ env.VERSION }}
          k8s-credentials: ${{ secrets[secrets.REF_K8S_DEV] }}

This requires there is a Github secret with Kubernetes credentials (JSON), to pass as the k8s-crentials input. As a string with JSON (cluster_name, cluster_group and credential fields). This specifies which Kubernetes environment is deployed to. The repository name is used by default as the project name, which should have a -deployment resource in Kubernetes.

Inputs

Name Description Default
project Name of the project to deploy The name of the repository
version (required) Version
k8s-credentials (required) Kubernetes credentials

About

Github action to deploy to K8s

Resources

Stars

Watchers

Forks

Packages

No packages published