test caching
Some checks failed
Build & Publish / build (push) Has been cancelled

This commit is contained in:
Jannik Reimers 2025-06-16 17:46:48 +02:00
parent 3b292d6ddd
commit 8b49b19b1a
Signed by: jansel
GPG key ID: 39C62D7D5233CFD0

View file

@ -26,6 +26,14 @@ jobs:
java-version: 21
distribution: temurin
- name: "Restore Cache"
id: restore-cache
uses: https://data.forgejo.org/actions/cache/restore@v4
with:
path: "~/.gradle/caches,~/.gradle/wrapper,~/.m2/repository"
key: gradle-store
- name: Grant execute permission for gradlew
run: chmod +x gradlew
@ -55,3 +63,10 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: registry.digitalocean.com/jansel/feixiao:latest,registry.digitalocean.com/jansel/feixiao:${{ steps.date.outputs.date }}
- name: "Save Cache"
uses: https://data.forgejo.org/actions/cache/save@v4
with:
path: ~/.gradle/caches,~/.gradle/wrapper,~/.m2/repository
key: ${{ steps.restore-cache.outputs.cache-primary-key }}