在此主机上找不到图像缓存,请下载XXXXXXX.dkr.ecr.us-west-2.amazonaws.com/test

时间:2019-02-12 05:03:23

标签: docker ubuntu-14.04 circleci circleci-2.0 aws-ecr

我正在尝试使用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+$/

任何想法都一样。

0 个答案:

没有答案