Adds an arch builder environment

This commit is contained in:
zontreck 2024-10-05 19:52:25 -07:00
parent e051a81384
commit e99f725971
13 changed files with 128 additions and 16 deletions

18
ArchAgent/Dockerfile Normal file
View file

@ -0,0 +1,18 @@
FROM git.zontreck.com/ariascreations/buildenvironments:archdev
WORKDIR /root/.gradle
ADD ./secret/gradle.properties ./gradle.properties
WORKDIR /root/.ssh
ADD ./secret/id_rsa ./id_rsa
ADD ./secret/id_rsa.pub ./id_rsa.pub
RUN chmod 0600 id_rsa
WORKDIR /
ADD ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/bin/bash", "/entrypoint.sh" ]

5
ArchAgent/entrypoint.sh Normal file
View file

@ -0,0 +1,5 @@
#!/bin/bash
echo $PUB | dart pub token add https://git.zontreck.com/api/packages/AriasCreations/pub
java -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -jar /agent.jar -url "https://ci.zontreck.com" -secret "$ARCHAGENT" -name "Arch" -workDir "/builder"