Commit 29dd2e40 authored by Guillaume Mella's avatar Guillaume Mella

declare ARG for FROM before the first FROM as explained in the FM

parent 856fef7b
Pipeline #32517 passed with stage
in 4 minutes and 6 seconds
......@@ -15,7 +15,7 @@ stages :
- cd oidb-$IMAGE
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build --build-arg MAMAN_E=$IMAGE_MAMAN_E --build-arg MYCLASSPATH=$MYCLASSPATH --build-arg SVN_TAG=$SVN_TAG --build-arg OIDB_JAVA_XMS=$OIDB_JAVA_XMS --build-arg OIDB_JAVA_XMX=$OIDB_JAVA_XMX -t $CI_REGISTRY_IMAGE/$IMAGE:$IMAGE_TAG$IMAGE_SUFFIX .
- docker build --build-arg IMAGE_TAG=$IMAGE_TAG --build-arg IMAGE_MAMAN_E=$IMAGE_MAMAN_E --build-arg MYCLASSPATH=$MYCLASSPATH --build-arg SVN_TAG=$SVN_TAG --build-arg OIDB_JAVA_XMS=$OIDB_JAVA_XMS --build-arg OIDB_JAVA_XMX=$OIDB_JAVA_XMX -t $CI_REGISTRY_IMAGE/$IMAGE:$IMAGE_TAG$IMAGE_SUFFIX .
- docker push $CI_REGISTRY_IMAGE/$IMAGE:$IMAGE_TAG$IMAGE_SUFFIX
build existdb:
......
ARG IMAGE_MAMAN_E
FROM gcr.io/distroless/java:debug as maman_j
#FROM gricad-registry.univ-grenoble-alpes.fr/osug/jmmc/jmmc-oidb-docker/existdb:1.4-beta
ARG MAMAN_E
FROM $MAMAN_E
FROM $IMAGE_MAMAN_E
ENV PATH ${PATH}:/busybox
COPY --from=maman_j / /
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment