Skip to content

GitHub action to destroy a stack in Okteto Cloud as part of your automated development workflow.

License

Notifications You must be signed in to change notification settings

okteto/destroy-stack

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 Destroying a Stack in Okteto Cloud

You can use this action to destroy a stack in Okteto Cloud as part of your automated development workflow.

Inputs

namespace

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

name

The name of the stack. If not specified it will use the one in your manifest file.

file

The path to the manifest file. If not specified, it will default to docker-compose.yaml or  okteto-stack.yaml.

working-directory

The working directory of the action. Defaults to the root folder of the repo.

Example usage

This example runs the login action and then destroys the stack

# 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 }}
    
    - uses: okteto/namespace@master

    - name: "Destroy stack"
      uses: okteto/destroy-stack@master