Skip to content

corporate-org/build-push-to-humanitec

Repository files navigation

Build Push to Humanitec Action

This action builds a container image from a Dockerfile, then pushes the image to the Humanitec registry and finally notifies the Humanitec platform that a new build is available.

Inputs

humanitec-token

Required The API token provided by the platform. This should be stored as a GitHub Repository Secret and then passed to the action using a variable expansion. For example, if the token is store as a secret with name HUMANITEC_TOKEN, the following code should be used to pass it to the action:


    uses: humanitec/build-push-to-humanitec
      with:
        humanitec-token: ${{ secrets.HUMANITEC_TOKEN }}
        organization: awesome-company

organization

Required The name of the organization that the module will be built for.

module-name

Optional The name you want to refer to the module to in the Humanitec Platform. The id must be all lowercase letters, numbers and the "-" symbol. It cannot start or end with "-".

dockerfile

Optional Directory containing the Dockerfile. Defaults to the root of repository.

Outputs

None.

Example usage


uses: humanitec/build-push-to-humanitec
  with:
    humanitec-token: ${{ secret.HUMANITEC_TOKEN }}
    organization: awesome-company

About

Test of GitHub Action

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published