GitHub action for building Go based lambdas
- uses: sevco/go-lambda-action@v1.0.1
with:
files: "main.go other/helper.go"
credentials: ${{ secrets.GIT_CREDENTIALS }}| Variable | Description | Required | Default |
|---|---|---|---|
| GIT_REVISION | Git commit sha | false | Output of git rev-parse --short HEAD |
| GIT_BRANCH | Git branch | false | Output of git rev-parse --abbrev-ref HEAD |
| Variable | Description | Required | Default |
|---|---|---|---|
| files | Source files to be built and packaged (space separated) | true | |
| directory | Relative path under $GITHUB_WORKSPACE where source code is located | false | |
| credentials | If provided git will be configured to use these credentials and https | false |
If directory argument is specified outputs will be relative to that directory.
- build/artifacts/lambda.$GIT_BRANCH.GIT_REVISION.zip
- build/artifacts/lambda.$GIT_BRANCH.latest.zip