Giter VIP home page Giter VIP logo

setup-devspace's Introduction

install-devspace-cli status

setup-devspace

This is a GitHub Action to install the DevSpace CLI. Windows, Mac, and Linux runners are supported.

Usage

This action will install the DevSpace CLI for use in job steps. The default behavior installs the latest release from DevSpace Releases. Subsequent steps may run any devspace CLI command.

Example: Use DevSpace to deploy to staging namespace on commits to main.

name: Deploy to Staging
on:
  push:
    branches:
      - 'main'
jobs:
  deploy-staging:
    runs-on: ubuntu-latest
    steps:
      - name: Install DevSpace
        uses: loft-sh/setup-devspace@main
      - name: Deploy using DevSpace
        run: devspace deploy --namespace staging

Example: Use a specific DevSpace Version

name: devspace version
on:
  push:
    branches:
      - 'main'
jobs:
  dev:
    runs-on: ubuntu-latest
    steps:
      - name: Install DevSpace
        uses: loft-sh/setup-devspace@main
        with:
          version: v5.15.0
      - name: Show Version
        run: devspace --version

Install kubectl

Options are provided to install kubectl. Many GitHub runners now come with kubectl pre-installed, however this allows for controlling the version of kubectl if desired.

Example: Install DevSpace and a specific version of kubectl

name: devspace and kubectl version
on:
  push:
    branches:
      - 'main'
jobs:
  dev:
    runs-on: ubuntu-latest
    steps:
      - name: Install DevSpace
        uses: loft-sh/setup-devspace@main
        with:
          kubectl-install: true
          kubectl-version: v1.21.0
      - name: Show Version
        run: devspace --version

Customizing

inputs

The following inputs can be used as step.with keys

Name Type Description
version String The version of DevSpace CLI to install. See DevSpace Releases, for available versions.
kubectl-install Boolean Install kubectl if not already installed
kubectl-version String The version of the kubectl to install

setup-devspace's People

Contributors

dependabot[bot] avatar lizardruss avatar github-actions[bot] avatar fabiankramm avatar

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.