Skip to content
Use this GitHub Action with your project

Add this Action to an existing workflow or create a new one.

View on Marketplace
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

GitHub Actions for Okteto Cloud

Automate your development workflows using Github Actions and Okteto Cloud

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!

Github Action for Building your Containers in Okteto Cloud

You can use this action to build an image from a Dockerfile using Okteto Cloud's build service.

Inputs

tag

Required Name and tag in the name:tag format.

file

Name of the Dockerfile. Default "Dockerfile".

path

The path to the files. Default ".".

buildargs

A list of environment variables as build-args

      env:
        PACKAGE_NAME: svc-api
        VCS_REF: ${{ github.sha }}
      with:
        buildargs: PACKAGE_NAME,VCS_REF

Example usage

This example runs the login action and then builds and pushes an image.

# File: .github/workflows/workflow.yml
on: [push]

name: example

jobs:

  devflow:
    runs-on: ubuntu-latest
    steps:
    
    - uses: okteto/login@master
      with:
        token: ${{ secrets.OKTETO_TOKEN }}
    
    - name: "Build"
      uses: okteto/build@master
      with:
        tag: registry.cloud.okteto.net/cindy/hello-world:${{ github.sha }}
You can’t perform that action at this time.