Skip to content
Snippets Groups Projects
Commit bb4217f5 authored by Millicent Billette's avatar Millicent Billette
Browse files

Update .gitlab-ci.yml

parent a8b228ad
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,9 @@ fast-build: ...@@ -7,6 +7,9 @@ fast-build:
stage: build stage: build
image: $CI_REGISTRY_IMAGE image: $CI_REGISTRY_IMAGE
script: script:
- ls -la
- ls -la /cache
- mv /cache/* /build/
- ls -la - ls -la
- node ./node_modules/gulp/bin/gulp build:web - node ./node_modules/gulp/bin/gulp build:web
artifacts: artifacts:
...@@ -44,13 +47,13 @@ docker-for-fast-build: ...@@ -44,13 +47,13 @@ docker-for-fast-build:
- docker:dind - docker:dind
script: script:
- echo 'FROM node:5' > Dockerfile - echo 'FROM node:5' > Dockerfile
- echo 'RUN pwd' >> Dockerfile - echo 'WORKDIR /cache' >> Dockerfile
- echo 'COPY * ./' >> Dockerfile - echo 'COPY * ./' >> Dockerfile
- echo 'COPY .bowerrc ./' >> Dockerfile - echo 'COPY .bowerrc ./' >> Dockerfile
- echo 'COPY .gitmodules ./' >> Dockerfile - echo 'COPY .gitmodules ./' >> Dockerfile
- echo 'RUN npm install' >> Dockerfile - echo 'RUN npm install' >> Dockerfile
- echo 'RUN npm run postinstall' >> Dockerfile - echo 'RUN npm run postinstall' >> Dockerfile
- echo 'RUN mv . ../cache' >> Dockerfile - echo 'WORKDIR /build' >> Dockerfile
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY - docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
- docker build --pull -t "$CI_REGISTRY_IMAGE" . - docker build --pull -t "$CI_REGISTRY_IMAGE" .
- docker push "$CI_REGISTRY_IMAGE" - docker push "$CI_REGISTRY_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