Skip to main content

No project description provided

Project description

envkeeper

What is Envkeeper?

Coming from Environment Housekeeper


envkeeper-actions

Custom Composit GitHub Actions to run Envkeeper (envkp) for housekeeping GitHub Environment.
https://github.com/marketplace/actions/envkeeper-actions

Usage

Create workflows (ex. .github/workflows/envkeeper.yaml) for using GitHub Actions of envkeeper with contexts:

name: Purge staled environment
on:
  schedule:
    # Runs on 19:00 JST every day, note that cron syntax applied as UTC
    - cron: '0 10 * * *'
  workflow_dispatch:

jobs:
  cleanup-env:
    steps:
      - name: Clean up Environments
        uses: hwakabh/envkeeper@main
        with:
          token: ${{ github.token }}
          repo: ${{ github.repository }}

Inputs

Inputs have been defined in action.yml:

Name Required Description
token true Token to use to authorize. Typically the GITHUB_TOKEN secrets.
repo true Target repository to check issue title.

Note that GitHub Actions of envkeeper will delete Deployments in the repository, the token has the scope for repo_deployment.

Outputs

TBD


envkp CLI

TBA for brief descriptions of envkp

CLI Install

envkp can be installed from PyPI with pip, poetry, uv, ...etc

or, Directly from Git with pip

Local Setup

  • Using setuptools Instead of using package manager, you can download the sourcse and setup locally using setuptools (setup.py) Environmental variables, Makefile, docker-compose, ...etc

  • Using .whl files Download from releases and install via pip

Usage

% envkp --repo ${reponame} clean
% envkp --repo ${reponame} seek

Environmental Variables

Name Required Description
GH_TOKEN true Token to use to authorize. Typically the GITHUB_TOKEN secrets.
GH_REPONAME false equivalent with the input for --repo

Good to know / Caveats

Anything if you have

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

envkp-0.4.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

envkp-0.4.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file envkp-0.4.0.tar.gz.

File metadata

  • Download URL: envkp-0.4.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for envkp-0.4.0.tar.gz
Algorithm Hash digest
SHA256 c24955ef5ee4bf826dedf57e36b7f7fb1b7c3c736a47084bc7ddc4e8b65b1b43
MD5 33329ac341fce00f41b782cf5bba1e37
BLAKE2b-256 8406fb852301605307bae01202dd1b043f7a847c50e8ecf6f2a3e7cbcf17b5ee

See more details on using hashes here.

File details

Details for the file envkp-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: envkp-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for envkp-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe21bb39e631fa131674dc36dcbd3df5f0f50e47a4d2c8fea5d9cad14f25eb86
MD5 5f86afcefdfa070d3120067b155ddca0
BLAKE2b-256 9cd7145490efd731cacfa4523b89f6ee18ce844fc76614f2d8005e3637d5e5e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page