Git Product home page Git Product logo

github-actions's Introduction

GitHub Actions

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

Buildpack Info Action

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

uses: docker://ghcr.io/buildpacks/actions/buildpack-info

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

Registry Action

The registry action adds and yanks buildpack releases in the Buildpack Registry Index.

Add

uses: docker://ghcr.io/buildpacks/actions/registry
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.

Yank

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

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.
yank true if this version should be yanked.

Setup pack CLI Action

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

uses: buildpacks/github-actions/setup-pack

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.

Verify Buildpackage Action

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

uses: docker://ghcr.io/buildpacks/actions/verify-buildpackage
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

License

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

github-actions's People

Contributors

dependabot[bot] avatar jkutner 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.