Skip to content

Commit ff92325

Browse files
committed
feat: upgrade for 2025
1 parent bb463f0 commit ff92325

5 files changed

Lines changed: 66 additions & 33 deletions

File tree

.github/dependabot.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "github-actions"
4-
directory: "/"
5-
schedule:
6-
interval: "daily"
7-
open-pull-requests-limit: 1
8-
- package-ecosystem: "docker"
9-
directory: "/"
10-
schedule:
11-
interval: "daily"
12-
open-pull-requests-limit: 1
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
open-pull-requests-limit: 1
8+
groups:
9+
github-actions:
10+
patterns:
11+
- "*"
12+
- package-ecosystem: "docker"
13+
directory: "/"
14+
schedule:
15+
interval: "daily"
16+
open-pull-requests-limit: 1
17+
groups:
18+
docker:
19+
patterns:
20+
- "*"

.github/workflows/docker.yml

Lines changed: 41 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ name: Docker Image
22

33
on:
44
schedule:
5-
- cron: "0 13 * * *" # everyday at 1pm
5+
- cron: "0 10 * * *" # everyday at 10am
6+
pull_request_target:
7+
branches: ["latest"]
68
push:
7-
branches: ["**"]
9+
branches: ["latest"]
810
tags: ["v*.*.*"]
911

1012
env:
@@ -20,30 +22,23 @@ jobs:
2022
- name: Set imageName based on the repository name
2123
id: step_one
2224
run: |
23-
imageName="${GITHUB_REPOSITORY/docker-/}"
24-
echo $imageName
25-
echo "imageName=$imageName" >> $GITHUB_ENV
25+
imageName="${GITHUB_REPOSITORY/docker-/}"
26+
echo $imageName
27+
echo "imageName=$imageName" >> $GITHUB_ENV
2628
- name: Docker meta
2729
id: docker_meta
28-
uses: crazy-max/ghaction-docker-meta@v5
30+
uses: docker/metadata-action@v5
2931
with:
3032
images: ${{ env.imageName }}
3133
- name: Set up QEMU
3234
uses: docker/setup-qemu-action@v3
3335
- name: Set up Docker Buildx
3436
uses: docker/setup-buildx-action@v3
35-
- name: Login to Harbor
37+
- name: Login to DockerHub
3638
uses: docker/login-action@v3
3739
with:
3840
username: ${{ secrets.DOCKERHUB_USERNAME }}
3941
password: ${{ secrets.DOCKERHUB_TOKEN }}
40-
- name: Buildx cache
41-
uses: actions/cache@v4
42-
with:
43-
path: ${{ github.workspace }}/cache
44-
key: ${{ runner.os }}-docker-${{ hashfiles('cache/**') }}
45-
restore-keys: |
46-
${{ runner.os }}-docker
4742
- name: Build and push
4843
id: docker_build
4944
uses: docker/build-push-action@v6
@@ -52,5 +47,35 @@ jobs:
5247
push: ${{ github.event_name != 'pull_request' }}
5348
tags: ${{ steps.docker_meta.outputs.tags }}
5449
labels: ${{ steps.docker_meta.outputs.labels }}
55-
# cache-from: type=local,src=${{ github.workspace }}/cache
56-
# cache-to: type=local,dest=${{ github.workspace }}/cache
50+
51+
- name: Docker Scout
52+
id: docker-scout-cves
53+
if: ${{ github.event_name != 'pull_request_target' }}
54+
uses: docker/scout-action@v1
55+
with:
56+
command: cves
57+
organization: beevelop
58+
image: ${{ env.imageName }}:latest
59+
to-latest: true
60+
github-token: ${{ secrets.GITHUB_TOKEN }} # to be able to write the comment
61+
sarif-file: sarif.output.json
62+
63+
- name: Upload SARIF result
64+
id: upload-sarif
65+
if: ${{ github.event_name != 'pull_request_target' }}
66+
uses: github/codeql-action/upload-sarif@v3
67+
with:
68+
sarif_file: sarif.output.json
69+
70+
- name: Compare to deployed image
71+
id: docker-scout-compare
72+
if: ${{ github.event_name == 'pull_request_target' }}
73+
uses: docker/scout-action@v1
74+
with:
75+
command: compare
76+
organization: beevelop
77+
image: ${{ steps.docker_meta.outputs.tags }}
78+
only-severities: critical,high
79+
platform: "linux/amd64"
80+
exit-on: vulnerability,policy
81+
summary: true

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM beevelop/java
22

33
# https://developer.android.com/studio/#downloads
44
ENV ANDROID_SDK_URL="https://dl.google.com/android/repository/commandlinetools-linux-13114758_latest.zip" \
5-
ANDROID_BUILD_TOOLS_VERSION=35.0.0 \
5+
ANDROID_BUILD_TOOLS_VERSION=36.0.1 \
66
ANT_HOME="/usr/share/ant" \
77
MAVEN_HOME="/usr/share/maven" \
88
GRADLE_HOME="/usr/share/gradle" \
@@ -35,10 +35,9 @@ RUN mkdir android && cd android && \
3535

3636
RUN mkdir /root/.android && touch /root/.android/repositories.cfg && \
3737
while true; do echo 'y'; sleep 2; done | sdkmanager "platform-tools" "build-tools;${ANDROID_BUILD_TOOLS_VERSION}" && \
38-
while true; do echo 'y'; sleep 2; done | sdkmanager "platforms;android-31" "platforms;android-32" "platforms;android-33" && \
39-
while true; do echo 'y'; sleep 2; done | sdkmanager "platforms;android-34" "platforms;android-35" && \
38+
while true; do echo 'y'; sleep 2; done | sdkmanager "platforms;android-33" "platforms;android-34" "platforms;android-35" "platforms;android-36" && \
4039
while true; do echo 'y'; sleep 2; done | sdkmanager "extras;android;m2repository" "extras;google;google_play_services" "extras;google;instantapps" "extras;google;m2repository" && \
41-
while true; do echo 'y'; sleep 2; done | sdkmanager "add-ons;addon-google_apis-google-22" "add-ons;addon-google_apis-google-23" "add-ons;addon-google_apis-google-24" "skiaparser;1" "skiaparser;2" "skiaparser;3"
40+
while true; do echo 'y'; sleep 2; done | sdkmanager "add-ons;addon-google_apis-google-24" "skiaparser;1" "skiaparser;2" "skiaparser;3"
4241

4342
RUN chmod a+x -R $ANDROID_SDK_ROOT && \
4443
chown -R root:root $ANDROID_SDK_ROOT && \

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2015-2023 Maik Hummel
3+
Copyright (c) 2015-2025 Maik Hummel
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88
![CalVer](https://img.shields.io/badge/CalVer-YYYY.MM.MICRO-22bfda.svg?style=for-the-badge)
99
[![Beevelop](https://img.shields.io/badge/-%20Made%20with%20%F0%9F%8D%AF%20by%20%F0%9F%90%9Dvelop-blue.svg?style=for-the-badge)](https://beevelop.com)
1010

11-
# Android 15 (API levels 31 - 35)
11+
# Android 16 (API levels 33 - 36)
1212

1313
## based on [beevelop/java](https://github.com/beevelop/docker-java)
1414

1515
- Java `17.0.12`
1616
- Gradle `8.12` (Groovy: `3.0.22`)
1717
- Apache Maven `3.6.3`
1818
- Ant `1.10.12`
19+
- Android Build Tools `36.0.1`
1920

2021
## Pull, build or run this image
2122

@@ -27,7 +28,7 @@ docker pull beevelop/android:v2023.12.1
2728
docker run --rm --name beevelop -it beevelop/android:v2023.12.1 bash
2829

2930
# or build the image from GitHub
30-
docker build -t beevelop/android github.com/beevelop/docker-base
31+
docker build -t beevelop/android github.com/beevelop/docker-android
3132
```
3233

3334
## Or use it as a base image

0 commit comments

Comments
 (0)