Skip to content
Snippets Groups Projects
Commit 32b66c75 authored by Éloïs's avatar Éloïs
Browse files

use docker hub

parent a764ff52
Branches
Tags
No related merge requests found
Pipeline #11798 failed
......@@ -18,12 +18,13 @@ build_image:
tags:
- redshift
script:
- docker pull "$CI_REGISTRY_IMAGE:latest" || true
- docker build --cache-from "$CI_REGISTRY_IMAGE:latest" --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG" .
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
- docker tag $CI_REGISTRY_IMAGE:$CI_BUILD_TAG $CI_REGISTRY_IMAGE:latest
- docker push "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG"
- docker push "$CI_REGISTRY_IMAGE:latest"
- docker pull "duniter/rust-x64-stable-ci:latest" || true
- docker build --cache-from "duniter/rust-x64-stable-ci:latest" --pull -t "duniter/rust-x64-stable-ci:$CI_BUILD_TAG" .
- docker login -u "duniterteam" -p "$DUNITERTEAM_PASSWD"
- docker tag "rust-x64-stable-ci:$IMAGE_TAG" "duniter/rust-x64-stable-ci:$IMAGE_TAG"
- docker push "duniter/rust-x64-stable-ci:$IMAGE_TAG"
- docker push "$duniter/rust-x64-stable-ci:latest"
only:
- tags
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment