GithubHelp home page GithubHelp logo

okteto / apply Goto Github PK

View Code? Open in Web Editor NEW
19.0 7.0 4.0 41 KB

Github action to create or update resources in your Okteto Cloud namespace

License: Apache License 2.0

Dockerfile 31.63% Shell 68.37%
okteto kubernetes github-actions cloud-computing microservices

apply's Introduction

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 Applying Resources in Okteto Cloud

You can use this action to create or update resources in your Okteto Cloud namespace. This is equivalent to running kubectl apply -f $manifest.

Inputs

namespace

The Okteto namespace to use. If not specified it will use the namespace specified by the namespace action.

manifest

Path to the Kubernetes manifest. Can be a file or a directory. It defaults to k8s.yml.

Example usage

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

apply's People

Contributors

bokteto avatar jlopezbarb avatar maroshii avatar pchico83 avatar rberrelleza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

apply's Issues

Can't find default k8s.yml

My repo at https://github.com/pedro-gutierrez/elementary.git has ak8s.yml manifest. I've successfully tested It both locally and in Okteto Cloud.

I've configured this simple workflow https://github.com/pedro-gutierrez/elementary/blob/master/.github/workflows/okteto.yml

but it seems it can't find the k8s.yml file:

/usr/bin/docker run --name b3ac68dcfc51bff594d77a2cd2114e85d61ff_85c634 --label 3b3ac6 --workdir /github/workspace --rm -e INPUT_MANIFEST -e INPUT_NAMESPACE -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/elementary/elementary":"/github/workspace" 3b3ac6:8dcfc51bff594d77a2cd2114e85d61ff  "k8s.yml" ""
running: kubectl apply -f k8s.yml
error: the path "k8s.yml" does not exist

Full run at: https://github.com/pedro-gutierrez/elementary/runs/1063263773?check_suite_focus=true

Error: Unable to resolve action `okteto/apply@master`

Error: Unable to resolve action `okteto/apply@master`, unable to find version `master`. Unable to resolve action `okteto/login@master`, unable to find version `master`. Unable to resolve action `okteto/namespace@master`, unable to find version `master`

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.