Skip to content
Snippets Groups Projects
Commit 564ac02e authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] FIx CI build

parent cf3ae2e3
No related branches found
No related tags found
No related merge requests found
Pipeline #12960 failed
...@@ -16,9 +16,7 @@ stages: ...@@ -16,9 +16,7 @@ stages:
# --------------------------------------------------------------- # ---------------------------------------------------------------
variables: variables:
CONTAINER_BUILD_IMAGE: $CI_REGISTRY_IMAGE:build CONTAINER_BUILD_IMAGE: $CI_REGISTRY_IMAGE/build:develop
CONTAINER_TEST_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
CONTAINER_RELEASE_IMAGE: $CI_REGISTRY_IMAGE:latest
# --------------------------------------------------------------- # ---------------------------------------------------------------
# Jobs templates # Jobs templates
...@@ -75,7 +73,8 @@ docker-for-fast-build: ...@@ -75,7 +73,8 @@ docker-for-fast-build:
stage: alt_build stage: alt_build
when: on_failure when: on_failure
allow_failure: true allow_failure: true
before_script: script:
# Prepare the Dockerfile
- echo 'FROM node:12' > Dockerfile - echo 'FROM node:12' > Dockerfile
- echo 'WORKDIR /.build-cache' >> Dockerfile - echo 'WORKDIR /.build-cache' >> Dockerfile
- echo 'COPY ./ ./' >> Dockerfile - echo 'COPY ./ ./' >> Dockerfile
...@@ -84,7 +83,7 @@ docker-for-fast-build: ...@@ -84,7 +83,7 @@ docker-for-fast-build:
- echo 'RUN du -s `find . -maxdepth 1 | egrep -v "^\.$"`>/after.txt' >> Dockerfile - echo 'RUN du -s `find . -maxdepth 1 | egrep -v "^\.$"`>/after.txt' >> Dockerfile
- echo "RUN diff /before.txt /after.txt || true" >> Dockerfile - echo "RUN diff /before.txt /after.txt || true" >> Dockerfile
- echo 'WORKDIR /build' >> Dockerfile - echo 'WORKDIR /build' >> Dockerfile
script: # Build image
- docker build --pull -t ${CONTAINER_BUILD_IMAGE} . - docker build --pull -t ${CONTAINER_BUILD_IMAGE} .
- docker push ${CONTAINER_BUILD_IMAGE} - docker push ${CONTAINER_BUILD_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