Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

garethjevans/build-action

Repository files navigation

Build Action

build-and-test golangci-lint Build and Publish

TODO

Usage

Auth

  • server: Host of the API Server.

  • ca-cert: CA Certificate of the API Server.

  • token: Service Account token to access kubernetes.

  • namespace: (required) The namespace to create the build resource in.

Image Configuration

  • destination: (required)

  • env:

  • serviceAccountName: Name of the service account in the namespace, defaults to default

Basic Configuration

- name: Build Image
  id: build
  uses: garethjevans/build-action@main
  with:
    # auth
    server: ${{ secrets.SERVER }}
    token: ${{ secrets.TOKEN }}
    ca_cert: ${{ secrets.CA_CERT }}
    namespace: ${{ secrets.NAMESPACE }}
    # image config
    destination: gcr.io/project-id/name-for-image
    env: |
      BP_JAVA_VERSION=17

Outputs

  • name: The full name, including sha of the built image.

Example

- name: Do something with image
  run:
    echo "${{ steps.build.outputs.name }}"

License

TODO The scripts and documentation in this project are released under the MIT License.

Contributions

TODO Contributions are welcome! See Contributor's Guide