Skip to content

ESB-1041 Fix HTTPS mixed content in iframe widget config and fix jpwebdynamicform configui assignment #213

ESB-1041 Fix HTTPS mixed content in iframe widget config and fix jpwebdynamicform configui assignment

ESB-1041 Fix HTTPS mixed content in iframe widget config and fix jpwebdynamicform configui assignment #213

Workflow file for this run

name: Maven MultiModule PR
env:
ENTANDO_GITHUB_TOOLS_VERSION: "v0.1.0"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_PR_TITLE: ${{ github.event.pull_request.title }}
GH_PR_NUMBER: ${{ github.event.pull_request.number }}
GH_PR_RUN_NUMBER: ${{ github.run_number }}
IMAGES_TO_BUILD: "Dockerfile.tomcat:entando-de-app-tomcat"
ENTANDO_CRANE_VERSION: ${{ vars.ENTANDO_CRANE_VERSION || 'v0.10.0' }}
GITHUB_REF: ${{ github.ref }}
on:
push:
branches: [ "develop", "release/*" ]
tags: [ 'v*' ]
pull_request:
branches: [ "develop", "release/*" ]
jobs:
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build:
permissions:
contents: write
pull-requests: read
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Configure
id: configure
run: |
if [ -f ".github/configure" ]; then . .github/configure "build"; fi
gh.job.outputVar SKIP_SCANS
gh.job.outputVar SKIP_TESTS
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-
- name: Build Java
run: .github/build.sh
- name: Submit Dependency Snapshot
uses: advanced-security/maven-dependency-submission-action@v4
- name: Save the build output
uses: actions/upload-artifact@v4
with:
name: target
overwrite: true
path: |
target/generated-resources/licenses
webapp/target/*.war
webapp/target/*-jsessionid-cookie-processor.jar
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test-and-scan:
needs: build
if: ${{ needs.build.outputs.SKIP_SCANS != 'true' || needs.build.outputs.SKIP_TESTS != 'true' }}
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-24.04
env:
SONAR_PROJECT_KEY: ${{ vars.SONAR_PROJECT_KEY }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_ORG: ${{ vars.SONAR_ORG }}
SONAR_URL: ${{ vars.SONAR_URL }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Cache SonarQube packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Restore the build output
uses: actions/download-artifact@v4
with:
name: target
path: .
- name: Configure
id: configure
run: if [ -f ".github/configure" ]; then . .github/configure "test-and-scan"; fi
- name: Test and Scan
run: .github/test-and-scan.sh
- name: Save the test report
if: failure()
uses: actions/upload-artifact@v4
with:
name: tests-report
compression-level: 0
overwrite: true
path: |
target/site/surefire-report.html
target/reports/surefire.html
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
publish:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-24.04
needs: [build, test-and-scan]
steps:
- uses: actions/checkout@v4
- name: Restore the build output
uses: actions/download-artifact@v4
with:
name: target
path: .
- name: Configure
run: if [ -f ".github/configure" ]; then . .github/configure "publish"; fi
- name: Build Docker image
run: |
mkdir -p ./target/generated-resources/licenses
touch ./target/generated-resources/licenses.xml
.github/github-tools/docker.multiBuild \
"${IMAGES_TO_BUILD}" \
"${ARTIFACT_VERSION}" \
"${{ vars.DOCKER_ORG }}" \
;
- name: Publish Docker image
run: |
GH_DO_COMMENT=true \
.github/github-tools/docker.multiPublish \
"${IMAGES_TO_BUILD}" \
"${ARTIFACT_VERSION}" \
"${{ vars.DOCKER_ORG }}" \
"${{ vars.DOCKER_REGISTRY }}" \
"${{ secrets.DOCKER_USERNAME }}" \
"${{ secrets.DOCKER_PASSWORD }}" \
"${ARTIFACT_PUB_TYPE}" \
;