forked from Eric-Guo/circleci-with-prince
-
Notifications
You must be signed in to change notification settings - Fork 0
Create a new image
Yejun Su edited this page Apr 29, 2024
·
1 revision
Run the steps on your local machine.
If you receive an error using the AWS CLI, make sure that you have the latest version of the AWS CLI and Docker installed.
- Setup AWS key _id and secret
export AWS_ACCESS_KEY_ID=******
export AWS_SECRET_ACCESS_KEY=*****
export AWS_DEFAULT_REGION=ca-central-1
- Use the AWS CLI:
aws ecr get-login-password --region ca-central-1 | docker login --username AWS --password-stdin 561855203082.dkr.ecr.ca-central-1.amazonaws.com
You may replace
latest
with a specific Ruby version, such asruby3.3
.
- Build image
docker build -t openapply/circleci-with-prince .
- Tag image
docker tag openapply/circleci-with-prince:latest 561855203082.dkr.ecr.ca-central-1.amazonaws.com/openapply/circleci-with-prince:latest
- Push image
docker push 561855203082.dkr.ecr.ca-central-1.amazonaws.com/openapply/circleci-with-prince:latest