[skip ci] Build in parallel

This commit is contained in:
Dave Chevell 2019-11-26 15:21:35 +11:00
parent 31f3bb1e1e
commit e1e75bde3e
No known key found for this signature in database
GPG Key ID: 279DF1B52C7C44DC

View File

@ -3,56 +3,57 @@ image: atlassian/docker-release-maker:latest
pipelines: pipelines:
custom: custom:
new-releases: new-releases:
- step: - parallel:
name: Confluence Alpine - step:
services: name: Confluence Alpine
- docker services:
script: - docker
- git submodule update --init --recursive script:
- export START_VERSION='6' - git submodule update --init --recursive
- export END_VERSION='7' - export START_VERSION='6'
- export DEFAULT_RELEASE='false' - export END_VERSION='7'
- export DOCKER_REPO='atlassian/confluence-server' - export DEFAULT_RELEASE='false'
- export DOCKERFILE='Dockerfile-alpine' - export DOCKER_REPO='atlassian/confluence-server'
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION' - export DOCKERFILE='Dockerfile-alpine'
- export MAC_PRODUCT_KEY='confluence' - export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
- export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8' - export MAC_PRODUCT_KEY='confluence'
- export CONCURRENT_BUILDS='3' - export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8'
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin - export CONCURRENT_BUILDS='3'
- python /usr/src/app/run.py --create - echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
- step: - python /usr/src/app/run.py --create
name: Confluence Ubuntu JDK 8 - step:
services: name: Confluence Ubuntu JDK 8
- docker services:
script: - docker
- git submodule update --init --recursive script:
- export START_VERSION='6' - git submodule update --init --recursive
- export END_VERSION='7.1' - export START_VERSION='6'
- export DEFAULT_RELEASE='true' - export END_VERSION='7.1'
- export DOCKER_REPO='atlassian/confluence-server' - export DEFAULT_RELEASE='true'
- export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk/openjdk8:slim' - export DOCKER_REPO='atlassian/confluence-server'
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION' - export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk/openjdk8:slim'
- export MAC_PRODUCT_KEY='confluence' - export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
- export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8' - export MAC_PRODUCT_KEY='confluence'
- export CONCURRENT_BUILDS='3' - export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8'
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin - export CONCURRENT_BUILDS='3'
- python /usr/src/app/run.py --create - echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
- step: - python /usr/src/app/run.py --create
name: Confluence Ubuntu JDK 11 - step:
services: name: Confluence Ubuntu JDK 11
- docker services:
script: - docker
- git submodule update --init --recursive script:
- export START_VERSION='7.1' - git submodule update --init --recursive
- export END_VERSION='8' - export START_VERSION='7.1'
- export DEFAULT_RELEASE='true' - export END_VERSION='8'
- export DOCKER_REPO='atlassian/confluence-server' - export DEFAULT_RELEASE='true'
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION' - export DOCKER_REPO='atlassian/confluence-server'
- export MAC_PRODUCT_KEY='confluence' - export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
- export TAG_SUFFIXES='jdk11,ubuntu' - export MAC_PRODUCT_KEY='confluence'
- export CONCURRENT_BUILDS='3' - export TAG_SUFFIXES='jdk11,ubuntu'
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin - export CONCURRENT_BUILDS='3'
- python /usr/src/app/run.py --create - echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
- python /usr/src/app/run.py --create
custom-release: custom-release:
- variables: - variables:
- name: CONFLUENCE_VERSION - name: CONFLUENCE_VERSION
@ -69,56 +70,57 @@ pipelines:
- docker push atlassian/confluence-server:${DOCKER_TAG} - docker push atlassian/confluence-server:${DOCKER_TAG}
branches: branches:
master: master:
- step: - parallel:
name: Confluence Alpine - step:
services: name: Confluence Alpine
- docker services:
script: - docker
- git submodule update --init --recursive script:
- export START_VERSION='6' - git submodule update --init --recursive
- export END_VERSION='7' - export START_VERSION='6'
- export DEFAULT_RELEASE='false' - export END_VERSION='7'
- export DOCKER_REPO='atlassian/confluence-server' - export DEFAULT_RELEASE='false'
- export DOCKERFILE='Dockerfile-alpine' - export DOCKER_REPO='atlassian/confluence-server'
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION' - export DOCKERFILE='Dockerfile-alpine'
- export MAC_PRODUCT_KEY='confluence' - export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
- export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8' - export MAC_PRODUCT_KEY='confluence'
- export CONCURRENT_BUILDS='3' - export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8'
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin - export CONCURRENT_BUILDS='3'
- python /usr/src/app/run.py --update - echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
- step: - python /usr/src/app/run.py --update
name: Confluence Ubuntu JDK 8 - step:
services: name: Confluence Ubuntu JDK 8
- docker services:
script: - docker
- git submodule update --init --recursive script:
- export START_VERSION='6' - git submodule update --init --recursive
- export END_VERSION='7.1' - export START_VERSION='6'
- export DEFAULT_RELEASE='true' - export END_VERSION='7.1'
- export DOCKER_REPO='atlassian/confluence-server' - export DEFAULT_RELEASE='true'
- export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk/openjdk8:slim' - export DOCKER_REPO='atlassian/confluence-server'
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION' - export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk/openjdk8:slim'
- export MAC_PRODUCT_KEY='confluence' - export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
- export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8' - export MAC_PRODUCT_KEY='confluence'
- export CONCURRENT_BUILDS='3' - export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8'
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin - export CONCURRENT_BUILDS='3'
- python /usr/src/app/run.py --update - echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
- step: - python /usr/src/app/run.py --update
name: Confluence Ubuntu JDK 11 - step:
services: name: Confluence Ubuntu JDK 11
- docker services:
script: - docker
- git submodule update --init --recursive script:
- export START_VERSION='7.1' - git submodule update --init --recursive
- export END_VERSION='8' - export START_VERSION='7.1'
- export DEFAULT_RELEASE='true' - export END_VERSION='8'
- export DOCKER_REPO='atlassian/confluence-server' - export DEFAULT_RELEASE='true'
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION' - export DOCKER_REPO='atlassian/confluence-server'
- export MAC_PRODUCT_KEY='confluence' - export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
- export TAG_SUFFIXES='jdk11,ubuntu' - export MAC_PRODUCT_KEY='confluence'
- export CONCURRENT_BUILDS='3' - export TAG_SUFFIXES='jdk11,ubuntu'
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin - export CONCURRENT_BUILDS='3'
- python /usr/src/app/run.py --update - echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
- python /usr/src/app/run.py --update
- step: - step:
name: Update README name: Update README
image: python:3.7-alpine3.9 image: python:3.7-alpine3.9