Skip to content

Latest commit

 

History

History
66 lines (49 loc) · 1.87 KB

build-publish.md

File metadata and controls

66 lines (49 loc) · 1.87 KB

Build and Publish

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
Loading

Inputs

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

Outputs

--

Permissions

Permission Level
contents read
id-token write
packages write

Repository Variables

  • AWS_REGION (only if inputs.aws-region is not set)
  • IMAGE_NAME (only if inputs.image-name is not set)

Repository Secrets

  • GITHUB_TOKEN

Dependencies

--

Used By