我正在尝试使用CIRCLE CI将图像推送到AWS(ECR),但出现错误
在此主机上找不到图像缓存,正在下载 XXXXXXX.dkr.ecr.us-west-2.amazonaws.com/test
我已经在AWS上创建了一个仓库。这是我的config.yml文件
version: 2
jobs:
build:
docker:
- image: XXXXXX.dkr.ecr.us-west-2.amazonaws.com/test
aws_auth:
aws_access_key_id: mykey
aws_secret_access_key: mysecretkey
steps:
- run:
name: "Every Day Tests"
command: "testing...."
- run:
name: "Deploy to Staging Infrastructure"
command: "something something darkside.... cli"
deploy:
docker:
- image: XXXXXX.dkr.ecr.us-west-2.amazonaws.com/test
aws_auth:
aws_access_key_id: mykey
aws_secret_access_key: mysecretkey
steps:
- run:
name: "Full Test Suite"
command: "testing...."
- run:
name: "Deploy to Production Infrastructure"
command: "something something darkside.... cli"
workflows:
version: 2
main:
jobs:
- build:
filters:
tags:
only: /^\d{4}\.\d+$/
- deploy:
requires:
- build
filters:
branches:
ignore: /.*/
tags:
only: /^\d{4}\.\d+$/
任何想法都一样。