Skip to content

Commit

Permalink
Update Jfrog docker registry URL (#951)
Browse files Browse the repository at this point in the history
Update JFrog artifactory URL. See also #953 

Somehow the artifactory is not available anymore at the URL pointed to by the CSCS-CI organization's CSCS_REGISTRY variable. This breaks all CIGR pipelines in general.
The existing credentials work however on the new location. The reason the new URL is hardcoded into the gitlab-ci.yml is that we can not change the externally managed variable.
  • Loading branch information
DropD authored Sep 29, 2022
1 parent c08f9f6 commit d0908cd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ include:
.py39: &py39
PYVERSION_PREFIX: py39
PYVERSION: 3.9.1
CSCS_REGISTRY_NEW: jfrog.svc.cscs.ch
IMAGE_NAME: contbuild/cscs-ci/gridtools/gt4py

.py38: &py38
PYVERSION_PREFIX: py38
PYVERSION: 3.8.5
CSCS_REGISTRY_NEW: jfrog.svc.cscs.ch
IMAGE_NAME: contbuild/cscs-ci/gridtools/gt4py

.status: &status
STATUS_IMAGE: dropd/github-status:latest
Expand All @@ -31,10 +35,10 @@ build py38:
extends: .dind
stage: image
variables:
BUILD_IMAGE: $CSCS_REGISTRY_IMAGE/gt4py-ci:$PYVERSION
BUILD_IMAGE: $CSCS_REGISTRY_NEW/$IMAGE_NAME/gt4py-ci:$PYVERSION
<<: *py38
script:
- docker login -u $CSCS_REGISTRY_USER -p $CSCS_REGISTRY_PASSWORD $CSCS_REGISTRY
- docker login -u $CSCS_REGISTRY_USER -p $CSCS_REGISTRY_PASSWORD $CSCS_REGISTRY_NEW
- docker pull $BUILD_IMAGE || echo "has not been built yet"
- docker build --network=host --cache-from $BUILD_IMAGE --build-arg BUILDKIT_INLINE_CACHE=1 --build-arg PYVERSION=$PYVERSION --build-arg CI_PROJECT_DIR=$CI_PROJECT_DIR -t $BUILD_IMAGE .
- docker push $BUILD_IMAGE
Expand All @@ -57,7 +61,7 @@ test py38:
- trying
needs: ["build py38"]
stage: test
image: $CSCS_REGISTRY_IMAGE/gt4py-ci:$PYVERSION
image: $CSCS_REGISTRY_NEW/$IMAGE_NAME/gt4py-ci:$PYVERSION
script:
- python -c "import cupy"
- pip install clang-format
Expand Down

0 comments on commit d0908cd

Please sign in to comment.