Skip to content

Instantly share code, notes, and snippets.

@dmd
Created October 6, 2022 16:05
Show Gist options
  • Save dmd/351a266149e8347afcf5771e1e15f54a to your computer and use it in GitHub Desktop.
Save dmd/351a266149e8347afcf5771e1e15f54a to your computer and use it in GitHub Desktop.
#!/bin/bash
# aws ecr-public create-repository --repository-name rapidtide-cloud --region us-east-1
# RETURNED:
REPO=public.ecr.aws/l0v4l2q2/rapidtide-cloud
docker build -t dmd3eorg/rapidtide-cloud .
docker buildx build --push --platform=linux/amd64,linux/arm64 -t dmd3eorg/rapidtide-cloud .
docker push dmd3eorg/rapidtide-cloud
docker login --username AWS --password $(aws ecr-public get-login-password --region us-east-1) $REPO
docker tag dmd3eorg/rapidtide-cloud:latest $REPO
docker push $REPO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment