Drone IO Publish to ECR from another account
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I'm using the Drone.IO CI/CD software to build and publish an image to an ECR in another AWS account, in the same region EU-WEST-1.
I have setup the IAM artefacts and it is connecting but failing on the last step. It seems that Drone is ignoring my registry option im passing it and just using the registry from the AWS API call.
Drone is running in account 0987654321 and Im trying to push the image to account 1234567890.
ecr:
image: plugins/ecr
registry: 12345677890.dkr.ecr.eu-west-1.amazonaws.com
repo: repo1/app_name
region: eu-west-1
tags: latest
dockerfile: Dockerfile
I get the following error:
+ /usr/local/bin/docker tag blah 0987654321.dkr.ecr.eu-west-1.amazonaws.com/repo1/app_name:latest
+ /usr/local/bin/docker push 0987654321.dkr.ecr.eu-west-1.amazonaws.com/repo1/app_name:latest
The push refers to repository [0987654321.dkr.ecr.eu-west-1.amazonaws.com/repo1/app_name]
name unknown: The repository with name repo1/app_name does not exist in the registry with id '0987654321'
Which makes it appear as though its not even using the registry attribute and using the registry from the API call.
continuous-deployment amazon-ecs drone drone.io
add a comment |
I'm using the Drone.IO CI/CD software to build and publish an image to an ECR in another AWS account, in the same region EU-WEST-1.
I have setup the IAM artefacts and it is connecting but failing on the last step. It seems that Drone is ignoring my registry option im passing it and just using the registry from the AWS API call.
Drone is running in account 0987654321 and Im trying to push the image to account 1234567890.
ecr:
image: plugins/ecr
registry: 12345677890.dkr.ecr.eu-west-1.amazonaws.com
repo: repo1/app_name
region: eu-west-1
tags: latest
dockerfile: Dockerfile
I get the following error:
+ /usr/local/bin/docker tag blah 0987654321.dkr.ecr.eu-west-1.amazonaws.com/repo1/app_name:latest
+ /usr/local/bin/docker push 0987654321.dkr.ecr.eu-west-1.amazonaws.com/repo1/app_name:latest
The push refers to repository [0987654321.dkr.ecr.eu-west-1.amazonaws.com/repo1/app_name]
name unknown: The repository with name repo1/app_name does not exist in the registry with id '0987654321'
Which makes it appear as though its not even using the registry attribute and using the registry from the API call.
continuous-deployment amazon-ecs drone drone.io
add a comment |
I'm using the Drone.IO CI/CD software to build and publish an image to an ECR in another AWS account, in the same region EU-WEST-1.
I have setup the IAM artefacts and it is connecting but failing on the last step. It seems that Drone is ignoring my registry option im passing it and just using the registry from the AWS API call.
Drone is running in account 0987654321 and Im trying to push the image to account 1234567890.
ecr:
image: plugins/ecr
registry: 12345677890.dkr.ecr.eu-west-1.amazonaws.com
repo: repo1/app_name
region: eu-west-1
tags: latest
dockerfile: Dockerfile
I get the following error:
+ /usr/local/bin/docker tag blah 0987654321.dkr.ecr.eu-west-1.amazonaws.com/repo1/app_name:latest
+ /usr/local/bin/docker push 0987654321.dkr.ecr.eu-west-1.amazonaws.com/repo1/app_name:latest
The push refers to repository [0987654321.dkr.ecr.eu-west-1.amazonaws.com/repo1/app_name]
name unknown: The repository with name repo1/app_name does not exist in the registry with id '0987654321'
Which makes it appear as though its not even using the registry attribute and using the registry from the API call.
continuous-deployment amazon-ecs drone drone.io
I'm using the Drone.IO CI/CD software to build and publish an image to an ECR in another AWS account, in the same region EU-WEST-1.
I have setup the IAM artefacts and it is connecting but failing on the last step. It seems that Drone is ignoring my registry option im passing it and just using the registry from the AWS API call.
Drone is running in account 0987654321 and Im trying to push the image to account 1234567890.
ecr:
image: plugins/ecr
registry: 12345677890.dkr.ecr.eu-west-1.amazonaws.com
repo: repo1/app_name
region: eu-west-1
tags: latest
dockerfile: Dockerfile
I get the following error:
+ /usr/local/bin/docker tag blah 0987654321.dkr.ecr.eu-west-1.amazonaws.com/repo1/app_name:latest
+ /usr/local/bin/docker push 0987654321.dkr.ecr.eu-west-1.amazonaws.com/repo1/app_name:latest
The push refers to repository [0987654321.dkr.ecr.eu-west-1.amazonaws.com/repo1/app_name]
name unknown: The repository with name repo1/app_name does not exist in the registry with id '0987654321'
Which makes it appear as though its not even using the registry attribute and using the registry from the API call.
continuous-deployment amazon-ecs drone drone.io
continuous-deployment amazon-ecs drone drone.io
edited Nov 15 '18 at 20:36
Garreth
asked Nov 15 '18 at 16:11
GarrethGarreth
411212
411212
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I know it might be a little late, but used Drone in my old job for this specific case of pushing images to an ECR repository in another AWS account. In the old bash ECR plugin (now is Go) it used to be with --registry-ids option if not wrong. Seems now it is documented.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53323534%2fdrone-io-publish-to-ecr-from-another-account%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I know it might be a little late, but used Drone in my old job for this specific case of pushing images to an ECR repository in another AWS account. In the old bash ECR plugin (now is Go) it used to be with --registry-ids option if not wrong. Seems now it is documented.
add a comment |
I know it might be a little late, but used Drone in my old job for this specific case of pushing images to an ECR repository in another AWS account. In the old bash ECR plugin (now is Go) it used to be with --registry-ids option if not wrong. Seems now it is documented.
add a comment |
I know it might be a little late, but used Drone in my old job for this specific case of pushing images to an ECR repository in another AWS account. In the old bash ECR plugin (now is Go) it used to be with --registry-ids option if not wrong. Seems now it is documented.
I know it might be a little late, but used Drone in my old job for this specific case of pushing images to an ECR repository in another AWS account. In the old bash ECR plugin (now is Go) it used to be with --registry-ids option if not wrong. Seems now it is documented.
answered Feb 11 at 18:52
Sergio Guillen MantillaSergio Guillen Mantilla
897816
897816
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53323534%2fdrone-io-publish-to-ecr-from-another-account%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown