Skip to content

Instantly share code, notes, and snippets.

View KleberMotta's full-sized avatar
🎯
Focusing

Kleber Motta KleberMotta

🎯
Focusing
View GitHub Profile
@miguelmota
miguelmota / Makefile
Last active June 11, 2024 00:17
Makefile docker push to AWS Elastic Container Registry (ECR)
# Login to AWS registry (must have docker running)
docker-login:
$$(aws ecr get-login --no-include-email --region us-east-1 --profile=mycompany)
# Build docker target
docker-build:
docker build -f Dockerfile --no-cache -t mycompany/myapp .
# Tag docker image
docker-tag: