Change location for cache action.
This commit is contained in:
parent
f34138c47c
commit
569cc05d5c
|
@ -47,7 +47,7 @@ jobs:
|
||||||
cache-read-only: ${{ gitea.ref != 'refs/heads/master' && gitea.ref != 'refs/heads/develop' }}
|
cache-read-only: ${{ gitea.ref != 'refs/heads/master' && gitea.ref != 'refs/heads/develop' }}
|
||||||
|
|
||||||
- name: run gradle check
|
- name: run gradle check
|
||||||
run: ./gradlew ${{ inputs.gradle_check_command }} -i -s
|
run: ./gradlew ${{ inputs.gradle_check_command }}
|
||||||
|
|
||||||
- id: import-secrets
|
- id: import-secrets
|
||||||
if: ${{ inputs.sonar_enabled }}
|
if: ${{ inputs.sonar_enabled }}
|
||||||
|
@ -60,22 +60,22 @@ jobs:
|
||||||
secrets: |
|
secrets: |
|
||||||
${{ inputs.vault_secrets_base_path }} sonarqube_token | SONAR_TOKEN ;
|
${{ inputs.vault_secrets_base_path }} sonarqube_token | SONAR_TOKEN ;
|
||||||
|
|
||||||
- name: Cache sonar modules
|
- name: calc sonar cache key
|
||||||
id: cache-sonar
|
if: ${{ inputs.sonar_enabled }}
|
||||||
uses: actions/cache@v3
|
run: echo "SONAR_SETTINGS_HASH=$(sha1sum ${{ github.workspace }}/build.gradle)" >> "$GITHUB_ENV"
|
||||||
env:
|
- id: cache-sonar
|
||||||
cache-name: cache-sonar-modules
|
if: ${{ inputs.sonar_enabled }}
|
||||||
|
uses: https://github.com/actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: /root/.sonar/cache
|
path: ~/.sonar/cache
|
||||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/build.gradle','**/settings.gradle') }}
|
key: cache-sonar-modules-${{ env.SONAR_SETTINGS_HASH }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
cache-sonar-modules-${{ env.SONAR_SETTINGS_HASH }}
|
||||||
${{ runner.os }}-build-
|
cache-sonar-modules-
|
||||||
${{ runner.os }}-
|
|
||||||
|
|
||||||
- name: run gradle sonar scan
|
- name: run gradle sonar scan
|
||||||
if: ${{ inputs.sonar_enabled }}
|
if: ${{ inputs.sonar_enabled }}
|
||||||
run: ./gradlew sonar -i -s
|
run: ./gradlew sonar
|
||||||
|
|
||||||
- name: dockerfile lint check
|
- name: dockerfile lint check
|
||||||
uses: https://github.com/hadolint/hadolint-action@v3.1.0
|
uses: https://github.com/hadolint/hadolint-action@v3.1.0
|
||||||
|
|
Loading…
Reference in New Issue