🚧 Travis: Fix build stage

pull/27/head
Gerber, Mike 4 years ago
parent 21c1f310b1
commit b0157ff1a2

@ -16,21 +16,31 @@ stages:
jobs: jobs:
include: include:
- stage: "Build Docker image" - stage: "Build Docker images"
script: script:
- sub_images=`ls -1 Dockerfile-* | sed 's/Dockerfile-//'`
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
# We are using the image my_ocrd_workflow to cache, so pull and tag it # We are using the images to cache, so pull and tag it
# FIXME - |
#- docker pull $DOCKER_USERNAME/my_ocrd_workflow for x in sub_images; do
#- docker tag $DOCKER_USERNAME/my_ocrd_workflow my_ocrd_workflow docker pull $DOCKER_USERNAME/my_ocrd_workflow-$x || true
docker tag $DOCKER_USERNAME/my_ocrd_workflow-$x my_ocrd_workflow-$x || true
done
- FORCE_DOWNLOAD=y ./build - FORCE_DOWNLOAD=y ./build
# FIXME - |
#- docker tag my_ocrd_workflow $DOCKER_USERNAME/my_ocrd_workflow:$TRAVIS_COMMIT set -e
#- docker images for x in sub_images; do
#- docker push $DOCKER_USERNAME/my_ocrd_workflow:$TRAVIS_COMMIT docker tag my_ocrd_workflow-$x $DOCKER_USERNAME/my_ocrd_workflow-$x:$TRAVIS_COMMIT
done
- docker images
- |
set -e
for x in sub_images; do
docker push $DOCKER_USERNAME/my_ocrd_workflow-$x:$TRAVIS_COMMIT
done
- stage: "Test" - stage: "Test"
script: script:

Loading…
Cancel
Save