Properly build the base image in the pipeline
This commit is contained in:
parent
fbe1d22dd0
commit
2455edd631
|
@ -4,7 +4,10 @@
|
|||
node('docker') {
|
||||
checkout scm
|
||||
|
||||
stage 'Build Containers'
|
||||
stage 'Prepare base RVM container'
|
||||
sh './build-base.sh'
|
||||
|
||||
stage 'Build Containers for Rubies'
|
||||
sh './build-rubies.sh'
|
||||
|
||||
stage 'Publish Containers'
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -x
|
||||
|
||||
source ./rubies
|
||||
|
||||
docker build -t ${IMAGE_TAG} .
|
|
@ -9,7 +9,7 @@ mkdir -p work
|
|||
for RUBY in "${RUBIES[@]}"; do
|
||||
DOCKERFILE="work/dockerfile-${RUBY}"
|
||||
cat > $DOCKERFILE <<EOF
|
||||
FROM rtyler/ci-rvm:latest
|
||||
FROM ${IMAGE_TAG}:latest
|
||||
|
||||
RUN bash -c 'source /usr/local/rvm/scripts/rvm && rvm install ${RUBY}'
|
||||
EOF
|
||||
|
|
Loading…
Reference in New Issue