mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Add pushing to DockerHub registry
This commit is contained in:
parent
49f851c935
commit
ba82f8f6b7
@ -29,6 +29,7 @@ docker-build-dev:
|
|||||||
- docker run --rm --privileged aptman/qus -- -r
|
- docker run --rm --privileged aptman/qus -- -r
|
||||||
- docker run --rm --privileged aptman/qus -s -- -p aarch64 x86_64
|
- docker run --rm --privileged aptman/qus -s -- -p aarch64 x86_64
|
||||||
- echo $CI_BUILD_TOKEN | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
|
- echo $CI_BUILD_TOKEN | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
|
||||||
|
- echo $DOCKERHUB_TOKEN | docker login -u "$DOCKERHUB_USER" --password-stdin $DOCKERHUB_REGISTRY
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
tag=":$CI_COMMIT_REF_SLUG"
|
tag=":$CI_COMMIT_REF_SLUG"
|
||||||
@ -45,6 +46,7 @@ docker-build-dev:
|
|||||||
--build-arg "BUILD_REF=${CI_COMMIT_SHA}"
|
--build-arg "BUILD_REF=${CI_COMMIT_SHA}"
|
||||||
--build-arg "CRAFTY_VER=${VERSION}"
|
--build-arg "CRAFTY_VER=${VERSION}"
|
||||||
--tag "$CI_REGISTRY_IMAGE${tag}"
|
--tag "$CI_REGISTRY_IMAGE${tag}"
|
||||||
|
--tag "arcadiatechnology/crafty-4${tag}"
|
||||||
--platform linux/arm64/v8,linux/amd64
|
--platform linux/arm64/v8,linux/amd64
|
||||||
--push .
|
--push .
|
||||||
after_script:
|
after_script:
|
||||||
@ -83,6 +85,7 @@ docker-build-prod:
|
|||||||
- docker run --rm --privileged aptman/qus -- -r
|
- docker run --rm --privileged aptman/qus -- -r
|
||||||
- docker run --rm --privileged aptman/qus -s -- -p aarch64 x86_64
|
- docker run --rm --privileged aptman/qus -s -- -p aarch64 x86_64
|
||||||
- echo $CI_BUILD_TOKEN | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
|
- echo $CI_BUILD_TOKEN | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
|
||||||
|
- echo $DOCKERHUB_TOKEN | docker login -u "$DOCKERHUB_USER" --password-stdin $DOCKERHUB_REGISTRY
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
VERSION="${MAJOR}.${MINOR}.${SUB}"
|
VERSION="${MAJOR}.${MINOR}.${SUB}"
|
||||||
@ -99,6 +102,8 @@ docker-build-prod:
|
|||||||
--build-arg "CRAFTY_VER=${VERSION}"
|
--build-arg "CRAFTY_VER=${VERSION}"
|
||||||
--tag "$CI_REGISTRY_IMAGE:$VERSION"
|
--tag "$CI_REGISTRY_IMAGE:$VERSION"
|
||||||
--tag "$CI_REGISTRY_IMAGE:latest"
|
--tag "$CI_REGISTRY_IMAGE:latest"
|
||||||
|
--tag "arcadiatechnology/crafty-4:$VERSION"
|
||||||
|
--tag "arcadiatechnology/crafty-4:latest"
|
||||||
--platform linux/arm64/v8,linux/amd64
|
--platform linux/arm64/v8,linux/amd64
|
||||||
--push .
|
--push .
|
||||||
after_script:
|
after_script:
|
||||||
|
Loading…
Reference in New Issue
Block a user