fix: image registry
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter 2023-07-15 09:08:57 +00:00
parent 06829a6942
commit f23bd9b9ee

View file

@ -11,13 +11,13 @@ steps:
commands: commands:
- buildah login "$${IMAGE_REGISTRY}" --username "$${GITEA_USER}" --password "$${GITEA_TOKEN}" - buildah login "$${IMAGE_REGISTRY}" --username "$${GITEA_USER}" --password "$${GITEA_TOKEN}"
- buildah pull "docker.io/eqalpha/keydb:x86_64_$${IMAGE_TAG}" - buildah pull "docker.io/eqalpha/keydb:x86_64_$${IMAGE_TAG}"
- buildah tag "docker.io/eqalpha/keydb:x86_64_$${IMAGE_TAG}" "$${IMAGE_REGISTRY}/prskr/infrastructure/keydb:x86_64_$${IMAGE_TAG}" - buildah tag "docker.io/eqalpha/keydb:x86_64_$${IMAGE_TAG}" "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:x86_64_$${IMAGE_TAG}"
- buildah pull "docker.io/eqalpha/keydb:arm64_$${IMAGE_TAG}" - buildah pull "docker.io/eqalpha/keydb:arm64_$${IMAGE_TAG}"
- buildah tag "docker.io/eqalpha/keydb:arm64_$${IMAGE_TAG}" "$${IMAGE_REGISTRY}/prskr/infrastructure/keydb:arm64_$${IMAGE_TAG}" - buildah tag "docker.io/eqalpha/keydb:arm64_$${IMAGE_TAG}" "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:arm64_$${IMAGE_TAG}"
- buildah manifest create "$${IMAGE_REPO}/prskr/infrastructure/keydb:$${IMAGE_TAG}" - buildah manifest create "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:$${IMAGE_TAG}"
- buildah manifest add "$${IMAGE_REPO}/prskr/infrastructure/keydb:$${IMAGE_TAG}" "$${IMAGE_REGISTRY}/prskr/infrastructure/keydb:x86_64_$${IMAGE_TAG}" - buildah manifest add "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:$${IMAGE_TAG}" "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:x86_64_$${IMAGE_TAG}"
- buildah manifest add "$${IMAGE_REPO}/prskr/infrastructure/keydb:$${IMAGE_TAG}" "$${IMAGE_REGISTRY}/prskr/infrastructure/keydb:arm64_$${IMAGE_TAG}" - buildah manifest add "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:$${IMAGE_TAG}" "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:arm64_$${IMAGE_TAG}"
- buildah manifest push --all "$${IMAGE_REPO}/prskr/infrastructure/keydb:$${IMAGE_TAG}" "docker://$${IMAGE_REPO}/prskr/infrastructure/keydb:$${IMAGE_TAG}" - buildah manifest push --all "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:$${IMAGE_TAG}" "docker://$${IMAGE_REGISTRY}/$${IMAGE_REPO}:$${IMAGE_TAG}"
environment: environment:
GITEA_USER: prskr GITEA_USER: prskr
GITEA_TOKEN: GITEA_TOKEN: