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 GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Nov 22, 2023
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: pcbaecker/go-build-and-deploy@29d2facd11edb8eaaafbd2bb076b2285dd580c16 # v0.0.23

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
goprivateThe value that should be set for the GOPRIVATE env e.g. github.com/pcbaeckerno""
repoaccesstokenThe token used to access the private repositoriesno${{ github.token }}
container-registryhost of the container registrynoghcr.io
container-usernameusername to login to the container registryno${{ github.actor }}
container-passwordThe password used to login to the container registryno${{ github.token }}
container-imagenameThe name of the container imageno${{ github.repository }}
deploy-repositoryThe name of the repository where the deployment .yamls areno""
deploy-filePath to the target deployment.yaml fileno""
platformThe desired platform to be built fornoamd64
run-testsIf tests should be run or notnotrue
master-branch-nameName of the master / main branchnomaster
target-branchName of the target branch, where the updated yaml file will be commited tonomaster
go-main-locationPath to the main file. Leave blank if main is in root folder.no""
deploy-file-yaml-pathThe yaml path inside the yaml file in the deployment repositorynospec.template.spec.containers[0].image
namedescription
container-imageName of the built and deployed container image