Keycloak
67 строк · 1.9 Кб
1name: Build Keycloak2description: Builds Keycloak providing Maven repository with all artifacts3
4inputs:5upload-m2-repo:6description: Upload Maven repository for org.keycloak artifacts7required: false8default: "true"9upload-dist:10description: Upload distribution11required: false12default: "false"13
14runs:15using: composite16steps:17- id: setup-java18name: Setup Java19uses: ./.github/actions/java-setup20
21- id: maven-cache22name: Maven cache23uses: ./.github/actions/maven-cache24with:25create-cache-if-it-doesnt-exist: true26
27- id: phantomjs-cache28name: PhantomJS cache29uses: ./.github/actions/phantomjs-cache30
31- id: frontend-plugin-cache32name: Frontend Plugin Cache33uses: ./.github/actions/frontend-plugin-cache34
35- id: build-keycloak36name: Build Keycloak37shell: bash38# By using "dependency:resolve", it will download all dependencies used in later stages for running the tests39run: |40./mvnw install dependency:resolve -V -e -DskipTests -DskipExamples
41
42- id: compress-keycloak-maven-repository43name: Compress Keycloak Maven artifacts44if: inputs.upload-m2-repo == 'true'45shell: bash46run: |47tar -C ~/ --use-compress-program zstd -cf m2-keycloak.tzts \
48--exclude '*.tar.gz' \
49.m2/repository/org/keycloak
50
51- id: upload-keycloak-maven-repository52name: Upload Keycloak Maven artifacts53if: inputs.upload-m2-repo == 'true'54uses: actions/upload-artifact@v355with:56name: m2-keycloak.tzts57path: m2-keycloak.tzts58retention-days: 159
60- id: upload-keycloak-dist61name: Upload Keycloak dist62if: inputs.upload-dist == 'true'63uses: actions/upload-artifact@v364with:65name: keycloak-dist66path: quarkus/dist/target/keycloak*.tar.gz67retention-days: 168