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

[enh] Fix gitlab CI

parent 24f37258
No related branches found
No related tags found
No related merge requests found
Pipeline #13195 failed
...@@ -16,7 +16,7 @@ stages: ...@@ -16,7 +16,7 @@ stages:
# --------------------------------------------------------------- # ---------------------------------------------------------------
variables: variables:
CI_BUILD_TYPES_IMAGE: $CI_REGISTRY_IMAGE/build-types:develop CI_BUILD_TYPES_BUNDLE_IMAGE: $CI_REGISTRY_IMAGE/build-types:develop
# --------------------------------------------------------------- # ---------------------------------------------------------------
# Jobs templates # Jobs templates
...@@ -57,7 +57,7 @@ variables: ...@@ -57,7 +57,7 @@ variables:
build-types-bundle: build-types-bundle:
extends: .build-types-bundle extends: .build-types-bundle
image: ${CI_BUILD_TYPES_IMAGE} image: ${CI_BUILD_TYPES_BUNDLE_IMAGE}
before_script: before_script:
- mv /tmp/.build-cache/types-bundle/node_modules ./types-bundle/ - mv /tmp/.build-cache/types-bundle/node_modules ./types-bundle/
# only: # only:
...@@ -68,7 +68,8 @@ failsafe-build-types-bundle: ...@@ -68,7 +68,8 @@ failsafe-build-types-bundle:
stage: alt_build stage: alt_build
when: on_failure when: on_failure
before_script: before_script:
- cd types-bundle && yarn - cd types-bundle
- yarn
# only: # only:
# - develop # - develop
...@@ -97,8 +98,8 @@ docker:ci: ...@@ -97,8 +98,8 @@ docker:ci:
- echo "RUN diff /tmp/before.txt /tmp/after.txt || true" >> Dockerfile - echo "RUN diff /tmp/before.txt /tmp/after.txt || true" >> Dockerfile
- echo 'WORKDIR /build' >> Dockerfile - echo 'WORKDIR /build' >> Dockerfile
# Build and push the CI image # Build and push the CI image
- docker build --no-cache -t ${CI_BUILD_TYPES_IMAGE} . - docker build --no-cache -t ${CI_BUILD_TYPES_BUNDLE_IMAGE} .
- docker push ${CI_BUILD_TYPES_IMAGE} - docker push ${CI_BUILD_TYPES_BUNDLE_IMAGE}
artifacts: artifacts:
paths: paths:
- dist/ci/Dockerfile - dist/ci/Dockerfile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment