build-publish.yml
Build the specified version and publish it to ECR.
graph TB
START((Start))
checkout(Checkout)
aws-credentials(Configure AWS Credentials)
login-ecr(Login to Amazon ECR)
login-ghcr(Login to GitHub Container Registry)
docker-meta(Docker Metadata)
docker-buildx(Setup Docker Buildx)
build(Build, tag, and push image)
END((End))
START --> checkout
checkout --> aws-credentials
aws-credentials --> login-ecr
aws-credentials --> login-ghcr
login-ecr --> docker-meta
login-ghcr --> docker-meta
docker-meta --> docker-buildx
docker-buildx --> build
build --> END
name | type | description | default |
---|---|---|---|
version |
string |
The ECR tag to publish (must be tagged on the repository) | -- |
image-name |
string |
The name of the image to publish | ${{ vars.IMAGE_NAME }} |
aws-region |
string |
The AWS region to publish to | ${{ vars.AWS_REGION }} |
aws-role-arn |
string |
The ARN of the AWS role to assume for publication | -- |
run-label |
string |
The run label to use for the actions | ubuntu-latest |
--
Permission | Level |
---|---|
contents |
read |
id-token |
write |
packages |
write |
AWS_REGION
(only ifinputs.aws-region
is not set)IMAGE_NAME
(only ifinputs.image-name
is not set)
GITHUB_TOKEN
--