Fork me on GitHub
#holy-lambda
<
2023-02-07
>
Chris Lowe15:02:05

Has anyone used Github actions to produce a native build?

Patrix11:03:17

bit late but yes I have done so

Patrix11:03:26

need some pointers or did you figure it out?

Chris Lowe11:03:16

Thanks for the offer - some pointers would be useful.

Chris Lowe11:03:20

I’m using gh actions for lambdas using snap start, but that circumvents HL entirely

Patrix02:04:46

Maybe this can help, it's very straightforward https://gist.github.com/patrixl/1d00d0a5a3a7acf45dceb6a5ccd37726 Things to note 1. I'm using the Github oidc to connect Github Actions to AWS : https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services 2. also using polylith but that's incidental, the only thing it changes is the paths list and the working-directory

Patrix02:04:59

the rest are just the usual bb tasks and sam commands to bulid and deploy

Chris Lowe10:04:33

Thank you, Patrix!

2
Chris Lowe11:04:27

As you say, it’s straightforward. I had something similar for the snapstart. For HL, I was expecting to wrestle with a docker config but that doesn’t appear to be the case.

Patrix06:04:12

that's nice to know actually, maybe I'll look into Snapstart one of these days 🙂