Giter VIP home page Giter VIP logo

metal-janitor-action's Introduction

Metal Janitor Action

A GitHub Action to cleanup Equinix Metal projects.

Inputs

metal-auth-token

Required The Equinix Metal API token to use. See the docs for further information on API keys.

project-names

Required The names of the Equinix Metal projects to cleanup.

You can specify multiple projects to cleanup by comma separating them. Projects will be cleanup up in the order specified: For example: projecta,projectb.

You can delete all projects by using the value DELETEALL. Note: this will delete all projects in the Org, or all projects that your API key can access.

Example Usage

jobs:
  cleanup:
    runs-on: ubuntu-latest
    name: Cleanup projects
    steps:
      - name: Cleanup projects
        uses: weaveworks/metal-janitor-action@b0373b3a6a8bb1e6573616040121c22ba230cdc8
        with:
          metal-auth-token: ${{ secrets.METAL_AUTH_TOKEN }}
          project-names: 'project1,project2'

metal-janitor-action's People

Contributors

callisto13 avatar richardcase avatar weaveworks-admin-bot avatar

Watchers

 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

metal-janitor-action's Issues

Delete projects by ID?

Project names are not unique, so it may be better to delete them by UUID or at least have the option to do that

Retry

Sometimes cleanup fails on the first go because a VLAN is still attached to a port. It would be handy to have it retry by default (or have an option to retry)

Wildcard support in project name

It would be good if we could include wildcards in the project name and delete all projects that match a name with the wild card.

So teama-* will delete all projects starting with teama-

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.