GithubHelp home page GithubHelp logo

global-localhost / github-actions-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from buildpacks/github-actions

0.0 0.0 0.0 1.17 MB

End-user GitHub Actions related to Cloud Native Buildpacks

License: Apache License 2.0

Dockerfile 0.50% Go 99.50%

github-actions-1's Introduction

GitHub Actions

CII Best Practices

github-actions is a collection of end-user GitHub Actions that integrate with Cloud Native Buildpacks projects.

Buildpack

Compute Metadata Action

The buildpack/compute-metadata action parses a buildpack.toml and exposes the contents of the [buildpack] block as output parameters.

uses: docker://ghcr.io/buildpacks/actions/buildpack/compute-metadata

Inputs

Parameter Description
path Optional path to buildpack.toml. Defaults to <working-dir>/buildpack.toml

Outputs

Parameter Description
id The contents of buildpack.id
name The contents of buildpack.name
version The contents of buildpack.version
homepage The contents of buildpack.homepage

Buildpackage

Verify Metadata Action

The buildpackage/verify-metadata action parses the metadata on a buildpackage and verifies that the id and version match expected values.

uses: docker://ghcr.io/buildpacks/actions/buildpackage/verify-metadata
with:
  id:      test-buildpack
  version: "1.0.0"
  address: ghcr.io/example/test-buildpack@sha256:04ba2d17480910bd340f0305d846b007148dafd64bc6fc2626870c174b7c7de7

Inputs

Parameter Description
id The expected id for the buildpackage
version The expected version for the buildpackage
address The digest-style address of the buildpackage to verify

Registry

Add Entry Action

The registry/add-entry adds an entry to the Buildpack Registry Index.

uses: docker://ghcr.io/buildpacks/actions/registry/add-entry
with:
  token: ${{ secrets.BOT_TOKEN }}
  owner: ${{ env.INDEX_OWNER }}
  repository: ${{ env.INDEX_REPOSITORY }}
  namespace: ${{ steps.metadata.outputs.namespace }}
  name: ${{ steps.metadata.outputs.name }}
  version: ${{ steps.metadata.outputs.version }}
  address: ${{ steps.metadata.outputs.address }}

Inputs

Parameter Description
token A GitHub token with permissions to commit to the registry index repository.
owner The owner name of the registry index repository.
repository The repository name of the registry index repository.
namespace The namespace of the buildpack to register.
name The name of the buildpack to register.
version The version of the buildpack to register.
address The address of the buildpack to register.

Compute Registry Metadata Action

The registry/compute-metadata action parses a buildpacks/registry-index issue and exposes the contents as output parameters.

uses: docker://ghcr.io/buildpacks/actions/registry/compute-metadata
with:
  issue:   ${{ toJSON(github.events.issue) }}

Inputs

Parameter Description
issue The GitHub issue payload.

Outputs

Parameter Description
id The contents of id
version The contents of version
address The contents of addr
namespace The namespace portion of id
name The name portion of id

Request Add Entry Action

The registry/request-add-entry action adds an entry to the Buildpack Registry Index.

uses: docker://ghcr.io/buildpacks/actions/registry/request-add-entry
with:
  token:   ${{ secrets.IMPLEMENTATION_PAT }}
  id:      $buildpacksio/test-buildpack
  version: ${{ steps.deploy.outputs.version }}
  address: index.docker.io/buildpacksio/test-buildpack@${{ steps.deploy.outputs.digest }}

Inputs

Parameter Description
token A GitHub token with public_repo scope to open an issue against buildpacks/registry-index.
id A buildpack id that your user is allowed to manage. This is must be in {namespace}/{name} format.
version The version of the buildpack that is being added to the registry.
address The Docker URI of the buildpack artifact. This is must be in {host}/{repo}@{digest} form.

Request Yank Entry Action

The registry/request-yank-entry action yanks an entry from the Buildpack Registry Index.

uses: docker://ghcr.io/buildpacks/actions/registry/request-yank-entry
with:
  token:   ${{ secrets.IMPLEMENTATION_PAT }}
  id:      buildpacksio/test-buildpack
  version: ${{ steps.deploy.outputs.version }}

Inputs

Parameter Description
token A GitHub token with public_repo scope to open an issue against buildpacks/registry-index.
id A buildpack id that your user is allowed to manage. This is must be in {namespace}/{name} format.
version The version of the buildpack that is being added to the registry.

Verify Namespace Owner Action

The registry/verify-namespace-owner action verifies that a user is an owner of a namespace in the Buildpack Registry Index.

uses: docker://ghcr.io/buildpacks/actions/registry/verify-namespace-owner
with:
  token: ${{ secrets.BOT_TOKEN }}
  owner: ${{ env.NAMESPACES_OWNER }}
  repository: ${{ env.NAMESPACES_REPOSITORY }}
  namespace: ${{ steps.metadata.outputs.namespace }}
  user: ${{ toJSON(github.event.issue.user) }}
  add-if-missing: true

Inputs

Parameter Description
token A GitHub token with permissions to commit to the registry namespaces repository.
owner The owner name of the registry namespaces repository.
repository The repository name of the registry namespaces repository.
namespace The namespace to check ownership for.
user The Github user payload.
add-if-missing Whether to add the current user as the owner of the namespace if that namespace does not exist. (Optional. Default false)

Yank Entry Action

The registry/yank-entry yanks an entry from the Buildpack Registry Index.

uses: docker://ghcr.io/buildpacks/actions/registry/yank-entry
with:
  token: ${{ secrets.BOT_TOKEN }}
  owner: ${{ env.INDEX_OWNER }}
  repository: ${{ env.INDEX_REPOSITORY }}
  namespace: ${{ steps.metadata.outputs.namespace }}
  name: ${{ steps.metadata.outputs.name }}
  version: ${{ steps.metadata.outputs.version }}

Inputs

Parameter Description
token A GitHub token with permissions to commit to the registry index repository.
owner The owner name of the registry index repository.
repository The repository name of the registry index repository.
namespace The namespace of the buildpack to register.
name The name of the buildpack to register.
version The version of the buildpack to register.

Setup pack CLI Action

The setup-pack action adds crane, jq, pack, and yj to the environment.

uses: buildpacks/github-actions/[email protected]

Inputs

Parameter Description
crane-version Optional version of crane to install. Defaults to latest release.
jq-version Optional version of jq to install. Defaults to latest release.
pack-version Optional version of pack to install. Defaults to latest release.
yj-version Optional version of yj to install. Defaults to latest release.

License

This library is released under version 2.0 of the Apache License.

github-actions-1's People

Contributors

buildpack-bot avatar dependabot[bot] avatar dfreilich avatar edmorley avatar foresteckhardt avatar imjasonh avatar importhuman avatar jkutner avatar jonashackt avatar mritunjaysharma394 avatar nebhale 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.