Skip to content

Commit 646466e

Browse files
authored
Try to fix JDK install steps
1 parent 9ad0816 commit 646466e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.circleci/config.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,17 @@ references:
4040
sudo python3.7 -m pip install --upgrade pip setuptools wheel
4141
sudo python3.7 -m pip install pipenv
4242
43+
# We're installing the JDK from Adoptium
44+
# https://adoptium.net/blog/2021/12/eclipse-temurin-linux-installers-available/
4345
install_jdk: &install-jdk
4446
run:
4547
name: install jdk 8
4648
command: |
47-
sudo apt-get install -y temurin-8-jdk
49+
sudo apt-get install -y wget apt-transport-https gnupg
50+
wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo apt-key add -
51+
echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee /etc/apt/sources.list.d/adoptium.list
52+
sudo apt update -y
53+
sudo apt install -y temurin-8-jdk
4854
4955
deploy_to_staging: &deploy-to-staging
5056
run:

0 commit comments

Comments
 (0)