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
Branches
Tags
No related merge requests found
...@@ -19,11 +19,11 @@ ...@@ -19,11 +19,11 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
variables: 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 # When using dind, it's wise to use the overlayfs driver for
# improved performance. # improved performance.
image: $CI_REGISTRY_IMAGE:latest image: $CI_REGISTRY_IMAGE
stages: stages:
- code_style - code_style
...@@ -77,12 +77,12 @@ build-testenv: ...@@ -77,12 +77,12 @@ build-testenv:
- schedules - schedules
script: script:
- cd unittests/docker - 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... # use here general latest or specific branch latest...
- docker pull $CI_REGISTRY_IMAGE:latest || true - docker pull $CI_REGISTRY_IMAGE|| true
- docker build - docker build
--pull --pull
--build-arg COMMIT=$CI_COMMIT_SHORT_SHA --build-arg COMMIT=$CI_COMMIT_SHORT_SHA
--cache-from $CI_REGISTRY_IMAGE:latest --cache-from $CI_REGISTRY_IMAGE
-t $CI_REGISTRY_IMAGE:latest . -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE:latest - docker push $CI_REGISTRY_IMAGE
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment