Git Product home page Git Product logo

dokube's Introduction

Hello, world!

Find me in these locations

github

my website


Hi. I'm matootie. I started programming in high school because it was fun, and I'm still riding that wave. I'm always interested in working on new projects. I don't use much social media, aside from GitHub if you count that, so if you would like to get in contact with me, good old fashion email works best. You know where to find it.

dokube's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar matootie avatar twin avatar vassopoli avatar

Stargazers

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

Watchers

 avatar  avatar

dokube's Issues

kubectl: command not found

I'm having difficulties to make it work, I'm not sure if it's a bug / issue with my workflow config

# This is a basic workflow to help you get started with Actions

name: K8S Deployment

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
  push:
    branches: [ alpha ]

env:
  repository: registry.digitalocean.com/hyperair/nuxt-website

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  # This workflow contains a single job called "build"
  deploy:
    # The type of runner that the job will run on
    runs-on: [self-hosted, linux]

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
    # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
    - uses: actions/checkout@v2

    - name: Build and push to DO
      uses: docker/[email protected]
      with:
        username: ${{ secrets.DO_API_TOKEN }}
        password: ${{ secrets.DO_API_TOKEN }}
        registry: registry.digitalocean.com
        repository: hyperair/nuxt-website
        tags: ${{ github.sha }}

    - name: Set up kubectl
      uses: matootie/[email protected]
      with:
        personalAccessToken: ${{ secrets.DO_API_TOKEN }}
        clusterName: hyperair

    - name: Deploy
      run: kubectl set image -n alpha --record deployment/website app=${{ env.repository }}:${{ github.sha }}
2020-06-08T05:44:38.3663099Z ##[group]Run matootie/[email protected]
2020-06-08T05:44:38.3663231Z with:
2020-06-08T05:44:38.3663807Z   personalAccessToken: ***
2020-06-08T05:44:38.3663894Z   clusterName: hyperair
2020-06-08T05:44:38.3663990Z   expirationTime: 600
2020-06-08T05:44:38.3664088Z   namespace: default
2020-06-08T05:44:38.3664220Z   version: 1.16.0
2020-06-08T05:44:38.3664315Z env:
2020-06-08T05:44:38.3664403Z   repository: registry.digitalocean.com/hyperair/nuxt-website
2020-06-08T05:44:38.3664511Z ##[endgroup]
2020-06-08T05:44:42.4968710Z ##[group]Run kubectl set image -n alpha --record deployment/website app=registry.digitalocean.com/hyperair/nuxt-website:6140374e69c2c82288cdcac96227e5f0ad1f35b0
2020-06-08T05:44:42.4969311Z �[36;1mkubectl set image -n alpha --record deployment/website app=registry.digitalocean.com/hyperair/nuxt-website:6140374e69c2c82288cdcac96227e5f0ad1f35b0�[0m
2020-06-08T05:44:42.5046785Z shell: /usr/bin/bash -e {0}
2020-06-08T05:44:42.5046902Z env:
2020-06-08T05:44:42.5047015Z   repository: registry.digitalocean.com/hyperair/nuxt-website
2020-06-08T05:44:42.5047136Z   KUBECONFIG: /root/dokubetemp/kubeconfig
2020-06-08T05:44:42.5047237Z ##[endgroup]
2020-06-08T05:44:42.5169361Z /tmp/github-runner-hyperairhk/_temp/7c6bd1e9-f4af-4eeb-bd14-e1a95d6dc530.sh: line 1: kubectl: command not found
2020-06-08T05:44:42.5175390Z ##[error]Process completed with exit code 127.

Set custom namespace in context

Currently, when dokube generates the kubeconfig file, it leaves the namespace at "default".

Simply provide an optional GitHub Actions input for the namespace. If it was provided, use it for the context. If not, use "default"

Example

action.yml

# ...
inputs:
  # ...
  namespace:
    description: 'The namespace to operate on.'
    required: false
    default: 'default'
# ...

index.js

// ...
const namespaceName = core.getInput("namespace", { required: true });

contexts: [
  {
    context: {
      // ...
      namespace: namespaceName,
      // ...
    },
    // ...
  }
]
// ...

cross-device link not permitted

##[error]EXDEV: cross-device link not permitted, rename '/home/runner/work/_temp/93e0c884-618d-442c-9938-ffe3f288519e' -> '/home/runner/dokubetemp/kubectl'

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.