Skip to content
ECR + Github actions demo
Dockerfile HCL
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.

Build and publish docker image to AWS ECR


A simple demo to demonstrate how to create an ECR repo and have github actions build and deploy a simple docker image. For the sake of this demo we are using the cloudflared as an example docker image that gets built using github actions.


Create an ECR repo using terraform code under the terraform/ subfolder. This requires terraform >= v0.12.

$ cd terraform
$ terraform init
$ terraform plan
$ terraform apply
You can’t perform that action at this time.