with cache
Some checks failed
build and publish docker image / deploy / build (push) Failing after 2m1s
Some checks failed
build and publish docker image / deploy / build (push) Failing after 2m1s
This commit is contained in:
parent
a329c8f2f1
commit
635baacc6b
27
.github/workflows/build_deploy_dev.yml
vendored
27
.github/workflows/build_deploy_dev.yml
vendored
|
@ -12,20 +12,41 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Restore cached Primes
|
||||||
|
id: maven-cache-restore
|
||||||
|
uses: https://github.com/actions/cache/restore@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
path/to/dependencies
|
||||||
|
some/other/dependencies
|
||||||
|
key: ${{ runner.os }}-maven
|
||||||
|
|
||||||
- uses: https://github.com/actions/checkout@v4
|
- uses: https://github.com/actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: 'learningpulse/server'
|
repository: 'learningpulse/server'
|
||||||
ref: 'dev'
|
ref: 'dev'
|
||||||
token: '${{ secrets.token }}'
|
token: '${{ secrets.token }}'
|
||||||
|
|
||||||
- name: 'Set up java 22'
|
- name: 'Set up java 22'
|
||||||
uses: https://github.com/actions/setup-java@v4
|
uses: https://github.com/actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: "22"
|
java-version: "22"
|
||||||
distribution: "temurin"
|
distribution: "temurin"
|
||||||
cache: maven
|
|
||||||
|
|
||||||
# - name: "Setup maven"
|
- name: Setup maven
|
||||||
# uses: https://github.com/stCarolas/setup-maven@v5
|
if: steps.maven-cache.outputs.cache-hit != 'true'
|
||||||
|
uses: https://github.com/stCarolas/setup-maven@v5
|
||||||
|
with:
|
||||||
|
maven-version: 3.9.6
|
||||||
|
|
||||||
|
- name: Cache local Maven repository
|
||||||
|
uses: https://github.com/actions/cache/save@v4
|
||||||
|
id: maven-cache-save
|
||||||
|
with:
|
||||||
|
path: ~/.m2/repository
|
||||||
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-maven
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -Dtoken=${{ secrets.token }} clean compile jib:build -e
|
run: mvn -Dtoken=${{ secrets.token }} clean compile jib:build -e
|
||||||
|
|
Reference in a new issue