Skip to content
Snippets Groups Projects
Unverified Commit 8631ae0b authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

FIX: registry use

parent 7f91a71b
No related branches found
No related tags found
No related merge requests found
......@@ -19,11 +19,11 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
variables:
CI_REGISTRY_IMAGE: $CI_REGISTRY/caosdb-pylib-testenv
CI_REGISTRY_IMAGE: $CI_REGISTRY/caosdb/caosdb-pylib/testenv:latest
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
image: $CI_REGISTRY_IMAGE:latest
image: $CI_REGISTRY_IMAGE
stages:
- code_style
......@@ -77,12 +77,12 @@ build-testenv:
- schedules
script:
- cd unittests/docker
- docker login -u indiscale -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
# use here general latest or specific branch latest...
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker pull $CI_REGISTRY_IMAGE|| true
- docker build
--pull
--build-arg COMMIT=$CI_COMMIT_SHORT_SHA
--cache-from $CI_REGISTRY_IMAGE:latest
-t $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY_IMAGE:latest
--cache-from $CI_REGISTRY_IMAGE
-t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment