diff --git a/.woodpecker.yml b/.woodpecker.yml index e5687bc62..562d8e992 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,35 +1,14 @@ +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 @@ -37,7 +16,7 @@ steps: GRADLE_USER_HOME: ".gradle" build_project: - image: cimg/android:2023.12 + image: *android_image commands: - sudo chown -R circleci:circleci . - ./gradlew assembleDebug @@ -45,40 +24,13 @@ steps: 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: