pcbaecker/Go build and deploy
This action builds the actual go repository into a docker image and then writes the image name into a .yaml file
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Nov 22, 2023
- License
- None
Pinned Snippet
uses: pcbaecker/go-build-and-deploy@29d2facd11edb8eaaafbd2bb076b2285dd580c16 # v0.0.23tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| goprivate | The value that should be set for the GOPRIVATE env e.g. github.com/pcbaecker | no | "" |
| repoaccesstoken | The token used to access the private repositories | no | ${{ github.token }} |
| container-registry | host of the container registry | no | ghcr.io |
| container-username | username to login to the container registry | no | ${{ github.actor }} |
| container-password | The password used to login to the container registry | no | ${{ github.token }} |
| container-imagename | The name of the container image | no | ${{ github.repository }} |
| deploy-repository | The name of the repository where the deployment .yamls are | no | "" |
| deploy-file | Path to the target deployment.yaml file | no | "" |
| platform | The desired platform to be built for | no | amd64 |
| run-tests | If tests should be run or not | no | true |
| master-branch-name | Name of the master / main branch | no | master |
| target-branch | Name of the target branch, where the updated yaml file will be commited to | no | master |
| go-main-location | Path to the main file. Leave blank if main is in root folder. | no | "" |
| deploy-file-yaml-path | The yaml path inside the yaml file in the deployment repository | no | spec.template.spec.containers[0].image |
Outputs
| name | description |
|---|---|
| container-image | Name of the built and deployed container image |