This repository is a chitin fiber containing a collection of chains for software development.
Optionally required:
docker
jwt
Clone this repository to your project dir
(the directory where you usually run git clone
).
Functions:
pruneDockerImages
: deletes all locally-cached Docker images not used in the last daylistDockerImageTags
: lists all available tags for a Docker imagegetLatestDockerImageTag
: gets the latest available tag for a Docker imagegetDockerImageTags
: gets a human-readable view of available tags for a Docker imagedockerArtifactoryPublish
: tags and pushes a locally-built Docker image to ArtifactorydockerArtifactoryPublishLast
: tags and pushes the last locally-built Docker image to Artifactory
This chain leverages chiSecret
for managing the Github PAT; add a section to your chiConfig with the name of the secret to use:
{
"chains": {
"github": {
"secretName": "gh-pat"
}
}
}
Functions:
githubListTeams
: lists all known Github teamsgithubAppJwt
: generates a JWT for Github authentication for the specified appjwtValidate
: validates the signature of the specified JWTgithubAppCreateInstallationToken
: creates an installation token for the given Github app installationgithubOpenDirectory
: opens the current git repository directory in the Github UI
Functions:
sshTunnel
: sets up an SSH tunnel to forward from a local port
Functions:
checksumUrl
: downloads a file from a url and checksums it