Merge branch 'ci/push-dockerhub' into 'next'
feat(ci): push oci-image to docker hub See merge request famedly/conduit!584
This commit is contained in:
commit
be1e2e9307
1 changed files with 15 additions and 4 deletions
|
@ -127,17 +127,14 @@ debian:x86_64-unknown-linux-gnu:
|
||||||
- target
|
- target
|
||||||
- .gitlab-ci.d
|
- .gitlab-ci.d
|
||||||
|
|
||||||
docker-publish:
|
.push-oci-image:
|
||||||
stage: publish
|
stage: publish
|
||||||
image: docker:25.0.0
|
image: docker:25.0.0
|
||||||
services:
|
services:
|
||||||
- docker:25.0.0-dind
|
- docker:25.0.0-dind
|
||||||
variables:
|
variables:
|
||||||
IMAGE_NAME: $CI_REGISTRY_IMAGE/matrix-conduit
|
|
||||||
IMAGE_SUFFIX_AMD64: amd64
|
IMAGE_SUFFIX_AMD64: amd64
|
||||||
IMAGE_SUFFIX_ARM64V8: arm64v8
|
IMAGE_SUFFIX_ARM64V8: arm64v8
|
||||||
before_script:
|
|
||||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
|
||||||
script:
|
script:
|
||||||
- docker load -i oci-image-amd64.tar.gz
|
- docker load -i oci-image-amd64.tar.gz
|
||||||
- IMAGE_ID_AMD64=$(docker images -q conduit:next)
|
- IMAGE_ID_AMD64=$(docker images -q conduit:next)
|
||||||
|
@ -167,3 +164,17 @@ docker-publish:
|
||||||
- next
|
- next
|
||||||
- master
|
- master
|
||||||
- tags
|
- tags
|
||||||
|
|
||||||
|
oci-image:push-gitlab:
|
||||||
|
extends: .push-oci-image
|
||||||
|
variables:
|
||||||
|
IMAGE_NAME: $CI_REGISTRY_IMAGE/matrix-conduit
|
||||||
|
before_script:
|
||||||
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
|
|
||||||
|
oci-image:push-dockerhub:
|
||||||
|
extends: .push-oci-image
|
||||||
|
variables:
|
||||||
|
IMAGE_NAME: matrixconduit/matrix-conduit
|
||||||
|
before_script:
|
||||||
|
- docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASSWORD
|
Loading…
Add table
Reference in a new issue