Skip to content
Snippets Groups Projects
Commit 8dff6700 authored by Christian Winter's avatar Christian Winter
Browse files

debug pipeline

parent be894673
Branches
No related tags found
No related merge requests found
...@@ -12,8 +12,11 @@ variables: ...@@ -12,8 +12,11 @@ variables:
- changes: - changes:
- $IMAGE_NAME/Dockerfile - $IMAGE_NAME/Dockerfile
- basis/* - basis/*
needs: # if the build_and_push step basis has to be done, then make the other build_and_push steps dependend of it
- job: basis
optional: true # only run if basis is added to the pipeline (depends on the rules).
before_script: before_script:
- docker login -u $DOCKER_HUB_USER -p $DOCKER_TOKEN - docker login -u "$DOCKER_HUB_USER" -p $DOCKER_TOKEN
script: script:
- docker build -t "$DOCKER_HUB_USER/etp_$IMAGE_NAME" $IMAGE_NAME/Dockerfile --no-cache; - docker build -t "$DOCKER_HUB_USER/etp_$IMAGE_NAME" $IMAGE_NAME/Dockerfile --no-cache;
- docker push "$DOCKER_HUB_USER/etp_$IMAGE_NAME"; - docker push "$DOCKER_HUB_USER/etp_$IMAGE_NAME";
...@@ -54,7 +57,7 @@ create_jupytermachine_version: ...@@ -54,7 +57,7 @@ create_jupytermachine_version:
script: script:
- | - |
IMAGES=( "basis" "tp" "python311") # "tp_herwig") # "tp_geant" "cuda_basis" IMAGES=( "basis" "tp" "python311") # "tp_herwig") # "tp_geant" "cuda_basis"
docker login -u $DOCKER_HUB_USER -p $DOCKER_TOKEN docker login -u "$DOCKER_HUB_USER" -p $DOCKER_TOKEN
cd basis_jupytermachine cd basis_jupytermachine
for image in "${IMAGES[@]}"; do for image in "${IMAGES[@]}"; do
...@@ -62,7 +65,7 @@ create_jupytermachine_version: ...@@ -62,7 +65,7 @@ create_jupytermachine_version:
OLD_BASE_IMAGE=$(grep -E '^\s*FROM\s+.*' Dockerfile | awk '{print $2}'); OLD_BASE_IMAGE=$(grep -E '^\s*FROM\s+.*' Dockerfile | awk '{print $2}');
echo $OLD_BASE_IMAGE; echo $OLD_BASE_IMAGE;
# Replace "basic_jupytermachine" with the new base image name # Replace "basic_jupytermachine" with the new base image name
NEW_BASE_IMAGE=$DOCKER_HUB_USER/etp_$image; NEW_BASE_IMAGE="$DOCKER_HUB_USER/etp_$image";
echo $NEW_BASE_IMAGE; echo $NEW_BASE_IMAGE;
sed -i "s#$OLD_BASE_IMAGE#$NEW_BASE_IMAGE#" "Dockerfile" sed -i "s#$OLD_BASE_IMAGE#$NEW_BASE_IMAGE#" "Dockerfile"
cat Dockerfile; cat Dockerfile;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment