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
- 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.
Name | Description | Default |
---|---|---|
project |
Name of the project to deploy | The name of the repository |
version |
(required) Version | |
k8s-credentials |
(required) Kubernetes credentials |