This repository has been archived on 2026-01-10. You can view files and clone it, but cannot push or open issues or pull requests.
coder-templates/android.tf.jinja
Steve McMaster 3a467b5c55
All checks were successful
continuous-integration/drone/push Build is passing
fix
2023-08-04 13:28:16 -04:00

36 lines
839 B
Django/Jinja

{% extends "base.tf.jinja" %}
{% set vs_code_root = "/home/circleci/project" %}
{% block parameters %}
{{ super() }}
data "coder_parameter" "android_ndk_version" {
name = "NDK Version"
description = "Android NDK version"
type = "string"
default = "21.4.7075529"
}
{% endblock %}
{% block kubernetes_pod_main_env %}
env {
name = "ANDROID_NDK_VERSION"
value = data.coder_parameter.android_ndk_version.value
}
{{ super() }}
{% endblock %}
{% block post_startup_script_setup_home %}
if [ -n "$ANDROID_NDK_VERSION" ]; then
sdkmanager "ndk;$ANDROID_NDK_VERSION"
fi
{% endblock %}
{% block kubernetes_pod_main_volume_mount %}
volume_mount {
mount_path = "/home/circleci/project"
name = "home"
read_only = false
}
{% endblock %}