Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Using docker manifest to tag the multi arch images with browser, driver, and selenium versions #11

Merged
merged 4 commits into from
Jun 2, 2022

Conversation

jamesmortensen
Copy link

Adding the ability to tag the images after they've been pushed is a bit tricky when they're multi-arch images. This is because docker engine can only load images for one platform at a time, while the builder can only push multi-arch images without loading them in the context.

In order to maintain the same image hashes (and make it easy to verify images with different tags are the same), we use docker manifest to create a new manifest with a specific tag and then amend it with the images from the different architectures using the --amend flag. Afterwards, we push the manifest to Docker Hub. We use the same process to push the latest tag as well.

Types of changes

  • [ X] Bug fix (non-breaking change which fixes an issue)
  • [ X] New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • [ X] I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • [ X] All new and existing tests passed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant