Skip to content

Commit

Permalink
Try removing meltwater cache. (#1326)
Browse files Browse the repository at this point in the history
* Try removing meltwater cache.

* Upgrading cimg/android to 2024.01
  • Loading branch information
dessalines committed Jan 22, 2024
1 parent 1e5c108 commit c3e59a2
Showing 1 changed file with 6 additions and 54 deletions.
60 changes: 6 additions & 54 deletions .woodpecker.yml
Original file line number Diff line number Diff line change
@@ -1,84 +1,36 @@
variables:
- &android_image "cimg/android:2024.01"

steps:
prettier_markdown_check:
image: tmknom/prettier
commands:
- prettier -c "*.md" "*.yml"

restore-cache:
image: meltwater/drone-cache:v1
pull: true
settings:
restore: true
endpoint:
from_secret: MINIO_ENDPOINT
access-key:
from_secret: MINIO_WRITE_USER
secret-key:
from_secret: MINIO_WRITE_PASSWORD
bucket:
from_secret: MINIO_BUCKET
region: us-east-1
cache_key: "jerboa-cache"
path-style: true
backend_operation_timeout: 15m
compression_level: 0
exit_code: true
mount:
- ".gradle"
secrets:
[MINIO_ENDPOINT, MINIO_WRITE_USER, MINIO_WRITE_PASSWORD, MINIO_BUCKET]

check_formatting:
image: cimg/android:2023.12
image: *android_image
commands:
- sudo chown -R circleci:circleci .
- ./gradlew lintKotlin
environment:
GRADLE_USER_HOME: ".gradle"

build_project:
image: cimg/android:2023.12
image: *android_image
commands:
- sudo chown -R circleci:circleci .
- ./gradlew assembleDebug
environment:
GRADLE_USER_HOME: ".gradle"

run_tests:
image: cimg/android:2023.12
image: *android_image
commands:
- sudo chown -R circleci:circleci .
- ./gradlew testDebug
environment:
GRADLE_USER_HOME: ".gradle"

rebuild-cache:
image: meltwater/drone-cache:v1
pull: true
settings:
rebuild: true
endpoint:
from_secret: MINIO_ENDPOINT
access-key:
from_secret: MINIO_WRITE_USER
secret-key:
from_secret: MINIO_WRITE_PASSWORD
bucket:
from_secret: MINIO_BUCKET
cache_key: "jerboa-cache"
region: us-east-1
path-style: true
backend_operation_timeout: 60m
compression_level: 0
exit_code: true
mount:
- ".gradle"
secrets:
[MINIO_ENDPOINT, MINIO_WRITE_USER, MINIO_WRITE_PASSWORD, MINIO_BUCKET]
when:
- path:
include: ["app/build.gradle.kts"]

notify:
image: alpine:3
commands:
Expand Down

0 comments on commit c3e59a2

Please sign in to comment.