Keycloak

Форк
0
67 строк · 1.9 Кб
1
name: Build Keycloak
2
description: Builds Keycloak providing Maven repository with all artifacts
3

4
inputs:
5
  upload-m2-repo:
6
    description: Upload Maven repository for org.keycloak artifacts
7
    required: false
8
    default: "true"
9
  upload-dist:
10
    description: Upload distribution
11
    required: false
12
    default: "false"
13

14
runs:
15
  using: composite
16
  steps:
17
    - id: setup-java
18
      name: Setup Java
19
      uses: ./.github/actions/java-setup
20

21
    - id: maven-cache
22
      name: Maven cache
23
      uses: ./.github/actions/maven-cache
24
      with:
25
        create-cache-if-it-doesnt-exist: true
26

27
    - id: phantomjs-cache
28
      name: PhantomJS cache
29
      uses: ./.github/actions/phantomjs-cache
30

31
    - id: frontend-plugin-cache
32
      name: Frontend Plugin Cache
33
      uses: ./.github/actions/frontend-plugin-cache
34

35
    - id: build-keycloak
36
      name: Build Keycloak
37
      shell: bash
38
      # By using "dependency:resolve", it will download all dependencies used in later stages for running the tests
39
      run: |
40
        ./mvnw install dependency:resolve -V -e -DskipTests -DskipExamples
41

42
    - id: compress-keycloak-maven-repository
43
      name: Compress Keycloak Maven artifacts
44
      if: inputs.upload-m2-repo == 'true'
45
      shell: bash
46
      run: |
47
        tar -C ~/ --use-compress-program zstd -cf m2-keycloak.tzts \
48
        --exclude '*.tar.gz' \
49
        .m2/repository/org/keycloak
50

51
    - id: upload-keycloak-maven-repository
52
      name: Upload Keycloak Maven artifacts
53
      if: inputs.upload-m2-repo == 'true'
54
      uses: actions/upload-artifact@v3
55
      with:
56
        name: m2-keycloak.tzts
57
        path: m2-keycloak.tzts
58
        retention-days: 1
59

60
    - id: upload-keycloak-dist
61
      name: Upload Keycloak dist
62
      if: inputs.upload-dist == 'true'
63
      uses: actions/upload-artifact@v3
64
      with:
65
        name: keycloak-dist
66
        path: quarkus/dist/target/keycloak*.tar.gz
67
        retention-days: 1
68

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.