2018-05-28 10:31:48 +02:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
runtime-setup:
|
|
|
|
image: netty:default
|
|
|
|
build:
|
|
|
|
context: .
|
2020-12-22 18:33:14 +01:00
|
|
|
dockerfile: Dockerfile.centos6
|
2018-05-28 10:31:48 +02:00
|
|
|
|
|
|
|
common: &common
|
|
|
|
image: netty:default
|
|
|
|
depends_on: [runtime-setup]
|
2021-05-12 18:02:35 +02:00
|
|
|
environment:
|
|
|
|
- GPG_KEYNAME
|
|
|
|
- GPG_PASSPHRASE
|
|
|
|
- GPG_PRIVATE_KEY
|
|
|
|
- MAVEN_OPTS
|
2018-05-28 10:31:48 +02:00
|
|
|
volumes:
|
2020-12-22 20:43:35 +01:00
|
|
|
- ~/.ssh:/root/.ssh
|
|
|
|
- ~/.gnupg:/root/.gnupg
|
|
|
|
- ~/.m2:/root/.m2
|
|
|
|
- ..:/code
|
2018-05-28 10:31:48 +02:00
|
|
|
working_dir: /code
|
|
|
|
|
2020-12-22 18:33:14 +01:00
|
|
|
build-leak:
|
|
|
|
<<: *common
|
2021-06-07 10:53:10 +02:00
|
|
|
command: /bin/bash -cl "./mvnw -B -ntp -Pleak clean install -Dio.netty.testsuite.badHost=netty.io -Dtcnative.classifier=linux-x86_64-fedora"
|
2020-12-22 18:33:14 +01:00
|
|
|
|
|
|
|
build:
|
|
|
|
<<: *common
|
2021-06-07 10:53:10 +02:00
|
|
|
command: /bin/bash -cl "./mvnw -B -ntp clean install -Dio.netty.testsuite.badHost=netty.io -Dtcnative.classifier=linux-x86_64-fedora"
|
2020-12-22 18:33:14 +01:00
|
|
|
|
2020-12-22 18:48:22 +01:00
|
|
|
deploy:
|
|
|
|
<<: *common
|
2021-06-07 10:53:10 +02:00
|
|
|
command: /bin/bash -cl "./mvnw -B -ntp clean deploy -DskipTests=true"
|
2020-12-22 18:48:22 +01:00
|
|
|
|
2020-12-24 12:00:08 +01:00
|
|
|
stage-snapshot:
|
|
|
|
<<: *common
|
|
|
|
volumes:
|
|
|
|
- ~/.ssh:/root/.ssh
|
|
|
|
- ~/.gnupg:/root/.gnupg
|
|
|
|
- ~/.m2:/root/.m2
|
|
|
|
- ~/local-staging:/root/local-staging
|
|
|
|
- ..:/code
|
2021-06-07 10:53:10 +02:00
|
|
|
command: /bin/bash -cl "./mvnw -B -ntp clean package org.sonatype.plugins:nexus-staging-maven-plugin:deploy -DaltStagingDirectory=/root/local-staging -DskipRemoteStaging=true -DskipTests=true"
|
2020-12-24 12:00:08 +01:00
|
|
|
|
2021-02-11 21:35:36 +01:00
|
|
|
stage-release:
|
|
|
|
<<: *common
|
|
|
|
volumes:
|
|
|
|
- ~/.ssh:/root/.ssh
|
|
|
|
- ~/.m2:/root/.m2
|
|
|
|
- ~/local-staging:/root/local-staging
|
|
|
|
- ..:/code
|
2021-06-07 10:53:10 +02:00
|
|
|
command: /bin/bash -cl "cat <(echo -e \"${GPG_PRIVATE_KEY}\") | gpg --batch --import && ./mvnw -B -ntp clean javadoc:jar package gpg:sign org.sonatype.plugins:nexus-staging-maven-plugin:deploy -DnexusUrl=https://oss.sonatype.org -DserverId=sonatype-nexus-staging -DaltStagingDirectory=/root/local-staging -DskipRemoteStaging=true -DskipTests=true -Dgpg.passphrase=${GPG_PASSPHRASE} -Dgpg.keyname=${GPG_KEYNAME} -Dtcnative.classifier=linux-x86_64-fedora"
|
2021-02-11 21:35:36 +01:00
|
|
|
|
2020-12-23 19:11:04 +01:00
|
|
|
build-boringssl-static:
|
2018-09-27 09:13:28 +02:00
|
|
|
<<: *common
|
2021-06-07 10:53:10 +02:00
|
|
|
command: /bin/bash -cl "./mvnw -B -ntp -Pboringssl clean install -Dio.netty.testsuite.badHost=netty.io -Dxml.skip=true"
|
2018-09-27 09:13:28 +02:00
|
|
|
|
2020-12-23 19:11:04 +01:00
|
|
|
build-leak-boringssl-static:
|
2018-05-28 10:31:48 +02:00
|
|
|
<<: *common
|
2021-06-07 10:53:10 +02:00
|
|
|
command: /bin/bash -cl "./mvnw -B -ntp -Pboringssl,leak clean install -Dio.netty.testsuite.badHost=netty.io -Dxml.skip=true"
|
2018-05-29 11:09:22 +02:00
|
|
|
|
|
|
|
shell:
|
|
|
|
<<: *common
|
2020-12-07 12:14:23 +01:00
|
|
|
entrypoint: /bin/bash
|