Skip to content
Snippets Groups Projects
Commit 5b5562f9 authored by jurgenhaas's avatar jurgenhaas
Browse files

Add curl

Optimize CI config
parent 3ccb88a6
No related branches found
No related tags found
1 merge request!1Add curl
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
......@@ -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 && \
......
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