Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login to ECR and Docker Hub at once #4067

Merged
merged 4 commits into from
Apr 25, 2023
Merged

Login to ECR and Docker Hub at once #4067

merged 4 commits into from
Apr 25, 2023

Conversation

bayandin
Copy link
Member

@bayandin bayandin commented Apr 25, 2023

  • Update kaniko to 1.9.2 (from 1.7.0), they have fixed it in Reproducible builds broken in 1.8.0 GoogleContainerTools/kaniko#2005
  • Login to ECR and Docker Hub at once, so we can push to several registries, it makes job push-docker-hub unneeded
  • push-docker-hub replaced with promote-images in needs: clause, Pushing images to production ECR moved to promote-images job

@github-actions
Copy link

github-actions bot commented Apr 25, 2023

Test results for 3ebd688:


debug build: 219 tests run: 209 passed, 0 failed, 10 (full report)


release build: 219 tests run: 209 passed, 0 failed, 10 (full report)


@bayandin bayandin changed the title WIP: Login to ECR and Docker Hub at once Login to ECR and Docker Hub at once Apr 25, 2023
@bayandin bayandin marked this pull request as ready for review April 25, 2023 13:20
Copy link
Contributor

@zoete zoete left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to see the combined auth and repro builds work now!

@bayandin bayandin merged commit 05ac0e2 into main Apr 25, 2023
25 checks passed
@bayandin bayandin deleted the bayandin/better-kaniko branch April 25, 2023 16:54
bayandin added a commit that referenced this pull request Apr 25, 2023
Follow-up fix after #4067

```
+ crane tag neondatabase/vm-compute-node-v14:3064 latest
Error: fetching "neondatabase/vm-compute-node-v14:3064": GET https://index.docker.io/v2/neondatabase/vm-compute-node-v14/manifests/3064: MANIFEST_UNKNOWN: manifest unknown; unknown tag=3064
```

I reverted back the previous approach for promoting images
(login to one registry, save images to local fs, logout and login to
another registry, and push images from local fs). It turns out what
works for one Google project (kaniko), doesn't work for another (crane)
[sigh]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants