Use Duplo to build and push a docker image from Github Actions
Avoid using capital letters when referencing a DuploCloud construct, such as a Tenant, even when the UI displays the string as all capital letters. Don't specify DEV01 for example, specify dev01.
The goal of this section is to show how you can build a docker image and push it to ECR.
It does three basic things:
Logs in to AWS ECR (using just-in-time AWS credentials from Duplo)
Builds and tags your docker image, with the tag based on the git commit SHA and ref.
Pushes your docker image
Here is an example github workflow that builds a docker image and pushes it to ECR.
To use it you will need to ensure the following are configured correctly:
DUPLO_HOST
env var
DUPLO_TOKEN
env var