Skip to content

Instantly share code, notes, and snippets.

@hansamann
Created April 23, 2018 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hansamann/5ef98453a30d7bc34f7358c3002a0598 to your computer and use it in GitHub Desktop.
Save hansamann/5ef98453a30d7bc34f7358c3002a0598 to your computer and use it in GitHub Desktop.
Manifest Stage
manifest:
stage: manifest
dependencies: []
variables:
GIT_STRATEGY: none
tags:
- local
script:
- echo ${GITLAB_REGISTRY_PASSWORD} | docker login -u ${GITLAB_REGISTRY_USER} --password-stdin ${CI_REGISTRY}
- docker manifest create ${CI_REGISTRY_IMAGE}:${DEPLOY_TAG} ${CI_REGISTRY_IMAGE}:arm32-${DEPLOY_TAG} ${CI_REGISTRY_IMAGE}:arm64-${DEPLOY_TAG}
- docker manifest annotate ${CI_REGISTRY_IMAGE}:${DEPLOY_TAG} ${CI_REGISTRY_IMAGE}:arm32-${DEPLOY_TAG} --os linux --arch arm
- docker manifest annotate ${CI_REGISTRY_IMAGE}:${DEPLOY_TAG} ${CI_REGISTRY_IMAGE}:arm64-${DEPLOY_TAG} --os linux --arch arm64
- docker manifest push ${CI_REGISTRY_IMAGE}:${DEPLOY_TAG}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment