Merge pull request #357 from corneil/corneil/add_settings_xml
Require .settings.xml for deploy credentials.
This commit is contained in:
11
.github/workflows/common.yml
vendored
11
.github/workflows/common.yml
vendored
@@ -40,7 +40,7 @@ jobs:
|
||||
- name: 'Configure: create streams applications matrix'
|
||||
shell: bash
|
||||
run: |
|
||||
ROOT_DIR=$PWD
|
||||
ROOT_DIR=$(realpath $PWD)
|
||||
pushd stream-applications > /dev/null
|
||||
$ROOT_DIR/create-matrixes.sh
|
||||
COUNT=$(jq '.count' matrix.json)
|
||||
@@ -178,14 +178,15 @@ jobs:
|
||||
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
|
||||
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
|
||||
run: |
|
||||
ROOT_DIR=$(realpath $PWD)
|
||||
echo "::notice ::building - stream-applications-build"
|
||||
./mvnw deploy -f stream-applications-build -U
|
||||
$ROOT_DIR/mvnw -s $ROOT_DIR/.settings.xml deploy -f stream-applications-build -U
|
||||
echo "::notice ::building - functions"
|
||||
./mvnw deploy -f functions -N -U
|
||||
$ROOT_DIR/mvnw -s $ROOT_DIR/.settings.xml deploy -f functions -N -U
|
||||
echo "::notice ::building - function-dependencies"
|
||||
./mvnw deploy -f functions/function-dependencies -N -U
|
||||
$ROOT_DIR/mvnw -s $ROOT_DIR/.settings.xml deploy -f functions/function-dependencies -N -U
|
||||
echo "::notice ::building - stream-applications-core"
|
||||
./mvnw deploy -f applications/stream-applications-core -N -U
|
||||
$ROOT_DIR/mvnw -s $ROOT_DIR/.settings.xml deploy -f applications/stream-applications-core -N -U
|
||||
echo "::notice ::core build completed"
|
||||
processors:
|
||||
needs:
|
||||
|
||||
10
.settings.xml
Normal file
10
.settings.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<settings>
|
||||
<servers>
|
||||
<server>
|
||||
<id>repo.spring.io</id>
|
||||
<username>${env.CI_DEPLOY_USERNAME}</username>
|
||||
<password>${env.CI_DEPLOY_PASSWORD}</password>
|
||||
</server>
|
||||
</servers>
|
||||
</settings>
|
||||
@@ -28,15 +28,15 @@ check_env VERSION
|
||||
ROOT_DIR=$PWD
|
||||
|
||||
pushd $APP_FOLDER > /dev/null
|
||||
$ROOT_DIR/mvnw clean install
|
||||
$ROOT_DIR/mvnw -s $ROOT_DIR/.settings.xml clean install
|
||||
rm -rf apps
|
||||
if [ -d "src/main/java" ]; then
|
||||
$ROOT_DIR/mvnw deploy -U -Pintegration
|
||||
$ROOT_DIR/mvnw -s $ROOT_DIR/.settings.xml deploy -U -Pintegration
|
||||
else
|
||||
$ROOT_DIR/mvnw package -U -Pintegration
|
||||
$ROOT_DIR/mvnw -s $ROOT_DIR/.settings.xml package -U -Pintegration
|
||||
fi
|
||||
pushd apps
|
||||
$ROOT_DIR/mvnw package jib:build -DskipTests \
|
||||
$ROOT_DIR/mvnw -s $ROOT_DIR/.settings.xml package jib:build -DskipTests \
|
||||
-Djib.to.tags="$VERSION" \
|
||||
-Djib.httpTimeout=1800000 \
|
||||
-Djib.to.auth.username="$DOCKER_HUB_USERNAME" \
|
||||
|
||||
Reference in New Issue
Block a user