Skip to content

Commit cbb98f8

Browse files
authored
Merge branch 'master' into issue-11234
2 parents 0b044a5 + fa5e57c commit cbb98f8

5 files changed

Lines changed: 183 additions & 70 deletions

File tree

.github/workflows/maven-master.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: PR build - master
1+
name: Build - master
22

33
on:
44
push:
@@ -38,27 +38,21 @@ jobs:
3838
"username": "${{ secrets.OSSRH_USERNAME }}",
3939
"password": "${{ secrets.OSSRH_TOKEN }}"
4040
}]
41-
- name: Build with Maven
42-
run: |
43-
export MY_POM_VERSION=`mvn -q -Dexec.executable="echo" -Dexec.args='${projects.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec`
44-
echo "POM VERSION" ${MY_POM_VERSION}
45-
if [[ ! $MY_POM_VERSION =~ ^.*SNAPSHOT$ ]];
46-
then
4741
- name: Build with Maven
4842
run: mvn -B -U verify --file pom.xml
4943
- name: Deploy Maven Snapshot
5044
if: ${{ matrix.java == 11 }}
5145
run: |
46+
export DOCKER_GENERATOR_IMAGE_NAME=swaggerapi/swagger-generator
47+
export DOCKER_CODEGEN_CLI_IMAGE_NAME=swaggerapi/swagger-codegen-cli
5248
export MY_POM_VERSION=`mvn -q -Dexec.executable="echo" -Dexec.args='${projects.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec`
5349
echo "POM VERSION" ${MY_POM_VERSION}
54-
if [[ ! $MY_POM_VERSION =~ ^.*SNAPSHOT$ ]];
50+
if [[ $MY_POM_VERSION =~ ^.*SNAPSHOT$ ]];
5551
then
5652
./mvnw clean deploy -U --settings $HOME/.m2/settings.xml
5753
docker build --rm=false -t $DOCKER_GENERATOR_IMAGE_NAME:unstable ./modules/swagger-generator
58-
docker tag $DOCKER_GENERATOR_IMAGE_NAME:unstable
5954
docker push $DOCKER_GENERATOR_IMAGE_NAME:unstable
6055
docker build --rm=false -t $DOCKER_CODEGEN_CLI_IMAGE_NAME:unstable ./modules/swagger-codegen-cli
61-
docker tag $DOCKER_CODEGEN_CLI_IMAGE_NAME:unstable
6256
docker push $DOCKER_CODEGEN_CLI_IMAGE_NAME:unstable
6357
else
6458
echo "not deploying release nor building and pushing release docker image: " ${MY_POM_VERSION}

.mvn/wrapper/maven-wrapper.jar

100755100644
11.3 KB
Binary file not shown.
Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
1-
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.4/apache-maven-3.8.4-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar

mvnw

Lines changed: 105 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)