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

Update .gitlab-ci.yml

parent 084fc44c
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ fast-build:
script:
- ls -la
- ls -la /cache
- mv /cache/* /build/
- mv /cache/node_modules /build/
- ls -la
- node ./node_modules/gulp/bin/gulp build:web
artifacts:
......@@ -48,16 +48,13 @@ docker-for-fast-build:
script:
- echo 'FROM node:5' > Dockerfile
- echo 'WORKDIR /cache' >> Dockerfile
- echo 'COPY * ./' >> Dockerfile
- echo 'COPY .bowerrc ./' >> Dockerfile
- echo 'COPY .gitmodules ./' >> Dockerfile
- echo 'RUN pwd' >> Dockerfile
- echo 'RUN ls -la' >> Dockerfile
- echo 'COPY ./ ./' >> Dockerfile
- echo "RUN ls -la | awk '{print $9}'>/before.txt" >> Dockerfile
- echo 'RUN npm install' >> Dockerfile
- echo 'RUN npm run postinstall' >> Dockerfile
- echo 'RUN ls -la' >> Dockerfile
- echo 'WORKDIR /build' >> Dockerfile
- echo 'RUN ls -la /cache/' >> Dockerfile
- echo "RUN ls -la /cache/ | awk '{print $9}' >/after.txt" >> Dockerfile
- echo "RUN diff /before.txt /after.txt" >> Dockerfile
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
- docker build --pull -t "$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