2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-22 09:58:08 +00:00

Use allowed CI image

## Summary

A recent (couple of weeks ago?) change to the Invent policies requires that we use a docker image from an allow list.

The cleanest fix is to just use the Ubuntu base image and install the JDK, which is approximately what we had before.

We considered the Sysadmin Android image (https://invent.kde.org/sysadmin/ci-images/-/blob/master/android-qt66/Dockerfile?ref_type=heads), but we use a newer version of the SDK tools and a newer version of the JDK, at which point we may as well just install those since those are the only dependencies. We could consider building another custom docker image in the future if we see value to doing so.

## Test Plan

### Before:

CI fails with:

```
ERROR: The "eclipse-temurin:17-jdk-focal" image is not present on list of allowed images:
- invent-registry.kde.org/sysadmin/ci-images/*:*
- ubuntu:*
- debian:*
- fedora:*
- centos:*
- opensuse/*:*
- python:*
- ruby:*
- fsfe/reuse:*
- quay.io/podman/stable:*
```

### After:

Build passes and drops .apk
This commit is contained in:
Simon Redman 2024-03-25 22:24:43 +00:00 committed by Philip Cohn-Cort
parent edbe59a2be
commit 93e4f43198

View File

@ -15,11 +15,11 @@ variables:
default: default:
tags: tags:
- Linux - Linux
image: eclipse-temurin:17-jdk-focal image: ubuntu:22.04
before_script: before_script:
# Prepare system for use of sdkmanager # Prepare system for use of sdkmanager
- apt-get --quiet update --yes - apt-get --quiet update --yes
- apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1 - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1 openjdk-17-jdk-headless
- wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/commandlinetools-linux-10406996_latest.zip - wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/commandlinetools-linux-10406996_latest.zip
# Create the directory structure around cmdline-tools that sdkmanager is expecting # Create the directory structure around cmdline-tools that sdkmanager is expecting
- mkdir -p sdk/cmdline-tools - mkdir -p sdk/cmdline-tools