summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/.m2/settings.xml32
-rw-r--r--config/install.sh6
2 files changed, 37 insertions, 1 deletions
diff --git a/config/.m2/settings.xml b/config/.m2/settings.xml
new file mode 100644
index 0000000..c36a363
--- /dev/null
+++ b/config/.m2/settings.xml
@@ -0,0 +1,32 @@
+<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
+ <localRepository>${user.home}/.m2/repository</localRepository>
+ <interactiveMode>false</interactiveMode>
+ <offline>false</offline>
+ <profiles>
+ <profile>
+ <id>gitlab-maven</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <repositories>
+ <repository>
+ <id>gitlab-maven</id>
+ <url>https://gitlab.com/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven</url>
+ </repository>
+ </repositories>
+ </profile>
+ </profiles>
+ <servers>
+ <server>
+ <id>gitlab-maven</id>
+ <configuration>
+ <httpHeaders>
+ <property>
+ <name>Job-Token</name>
+ <value>${env.CI_JOB_TOKEN}</value>
+ </property>
+ </httpHeaders>
+ </configuration>
+ </server>
+ </servers>
+</settings>
diff --git a/config/install.sh b/config/install.sh
index 873cb14..0a0ddf2 100644
--- a/config/install.sh
+++ b/config/install.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-set -euo pipefail
+set -euxo pipefail
export DEBIAN_FRONTEND=noninteractive
@@ -85,6 +85,9 @@ git clone https://github.com/asdf-vm/asdf.git "$ASDF_DATA_DIR"
cd "$ASDF_DATA_DIR"
git checkout "$(git describe --abbrev=0 --tags)"
+# shellcheck source=/dev/null
+. "$ASDF_DATA_DIR"/asdf.sh
+
while IFS= read -r line; do
tool=$(echo "$line" | cut -d' ' -f1)
asdf plugin-add "$tool"
@@ -93,6 +96,7 @@ bash "$ASDF_DATA_DIR/plugins/nodejs/bin/import-release-team-keyring"
asdf install
asdf reshim
asdf current
+
rm -fr /tmp
mkdir -p /tmp
chmod 777 /tmp