GitHub Actions gives you the flexibility to build an automated software development workflows. With GitHub Actions for Okteto Cloud you can create workflows to build, deploy and update your applications in Okteto Cloud.
Get started today with a free Okteto Cloud account!
You can use this action to create or update resources in your Okteto Cloud namespace. This is equivalent to running kubectl apply -f $manifest
.
The Okteto namespace to use. If not specified it will use the namespace specified by the namespace
action.
Path to the Kubernetes manifest. Can be a file or a directory. It defaults to k8s.yml
.
This example runs the login action, activates a namespace and creates a deployment.
# File: .github/workflows/workflow.yml
on: [push]
name: example
jobs:
devflow:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@master
- uses: okteto/login@master
with:
token: ${{ secrets.OKTETO_TOKEN }}
- name: "Activate personal namespace"
uses: okteto/namespace@master
with:
name: cindylopez
- name: "Create deployment"
uses: okteto/apply@master
with:
manifest: deployment.yaml