diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 30f35852461942762107142c6c0abc54cebe0160..74dd492c425b808b4d6e701371047e76c085d0c4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,34 +1,13 @@ before_script: - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY -node-8: +node: stage: build + parallel: + matrix: + - VERSION: ['8-jessie-slim','10-jessie-slim','12-stretch-slim','13-stretch-slim'] script: - - docker build --pull --build-arg NODE_VERSION=8-jessie-slim -t $CI_REGISTRY_IMAGE:8-jessie-slim . - - docker push $CI_REGISTRY_IMAGE:8-jessie-slim - only: - - master - -node-10: - stage: build - script: - - docker build --pull --build-arg NODE_VERSION=10-jessie-slim -t $CI_REGISTRY_IMAGE:10-jessie-slim . - - docker push $CI_REGISTRY_IMAGE:10-jessie-slim - only: - - master - -node-12: - stage: build - script: - - docker build --pull --build-arg NODE_VERSION=12-stretch-slim -t $CI_REGISTRY_IMAGE:12-stretch-slim . - - docker push $CI_REGISTRY_IMAGE:12-stretch-slim - only: - - master - -node-13: - stage: build - script: - - docker build --pull --build-arg NODE_VERSION=13-stretch-slim -t $CI_REGISTRY_IMAGE:13-stretch-slim . - - docker push $CI_REGISTRY_IMAGE:13-stretch-slim + - docker build --pull --build-arg NODE_VERSION=${VERSION} -t $CI_REGISTRY_IMAGE:${VERSION} . + - docker push $CI_REGISTRY_IMAGE:${VERSION} only: - master diff --git a/Dockerfile b/Dockerfile index 28fec842701e680e34a319793c0cf6e300c63843..32502bceee771cfbb2ce71bf443839bf7f404dcc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ LABEL com.example.vendor="LakeDrops" \ description="Node container with build tools included." RUN apt-get update -y && \ - apt-get install -y -q python3 make g++ && \ + apt-get install -y -q python3 make g++ curl && \ ln -s python3 /usr/bin/python && \ \ apt-get clean && \