Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish-base-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
docker buildx build \
--pull \
--no-cache \
--platform linux/amd64 \
--platform linux/amd64,linux/arm64 \
-t ${BASE_IMAGE_FULL_NAME}:${BASE_TAG} \
-t ${BASE_IMAGE_FULL_NAME}:latest \
--push \
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/verify-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,28 @@ concurrency:
jobs:
verify:
name: Verify APK
runs-on: ubuntu-latest
runs-on: macos-latest
timeout-minutes: 360
permissions:
contents: read
packages: read
env:
DOCKER_BUILDKIT: 1
DOCKER_DEFAULT_PLATFORM: linux/arm64
VERIFY_BASE_IMAGE: ghcr.io/${{ github.repository_owner }}/gem-android-base
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Docker (Colima)
run: |
brew install docker docker-buildx colima
mkdir -p ~/.docker/cli-plugins
ln -sfn $(brew --prefix)/opt/docker-buildx/bin/docker-buildx ~/.docker/cli-plugins/docker-buildx
colima start --cpu 4 --memory 8 --arch aarch64

- name: Read base image tag (default)
id: base_tag
run: |
Expand Down
20 changes: 12 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,17 @@ ARG ANDROID_API_LEVEL=35
ARG ANDROID_BUILD_TOOLS_VERSION=35.0.0
ARG ANDROID_NDK_VERSION=28.1.13356709
ARG JUST_VERSION=1.45.0
ARG JUST_TARGET=x86_64-unknown-linux-musl

FROM ${GRADLE_IMAGE}

USER root

ARG TARGETARCH
ARG CMDLINE_TOOLS_VERSION
ARG ANDROID_API_LEVEL
ARG ANDROID_BUILD_TOOLS_VERSION
ARG ANDROID_NDK_VERSION
ARG JUST_VERSION
ARG JUST_TARGET

ENV HOME=/root
ENV ANDROID_HOME=/opt/android-sdk
Expand All @@ -27,18 +26,23 @@ ENV ANDROID_SDK_URL=https://dl.google.com/android/repository/commandlinetools-li
ENV PATH=${ANDROID_HOME}/cmdline-tools/bin:${ANDROID_HOME}/platform-tools:${PATH}

# Runtime deps for build-tools/aapt2.
RUN dpkg --add-architecture amd64 && \
RUN DPKG_ARCH=$(dpkg --print-architecture) && \
apt-get update && \
apt-get install -y --no-install-recommends \
libc6:amd64 \
libstdc++6:amd64 \
zlib1g:amd64 \
libtinfo6:amd64 \
libc6:${DPKG_ARCH} \
libstdc++6:${DPKG_ARCH} \
zlib1g:${DPKG_ARCH} \
libtinfo6:${DPKG_ARCH} \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*

# Install just from a pinned release.
RUN curl -fL \
RUN case ${TARGETARCH} in \
amd64) JUST_TARGET="x86_64-unknown-linux-musl" ;; \
arm64) JUST_TARGET="aarch64-unknown-linux-musl" ;; \
*) echo "Unsupported architecture: ${TARGETARCH}" && exit 1 ;; \
esac && \
curl -fL \
"https://github.com/casey/just/releases/download/${JUST_VERSION}/just-${JUST_VERSION}-${JUST_TARGET}.tar.gz" \
-o /tmp/just.tar.gz && \
tar -xzf /tmp/just.tar.gz -C /tmp && \
Expand Down
2 changes: 1 addition & 1 deletion reproducible/base_image_tag.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
base-2025-12-18
base-2026-01-30
Loading