-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
48 lines (46 loc) · 1.86 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
github:
prebuilds:
# enable for the master/default branch (defaults to true)
master: true
# enable for all branches in this repo (defaults to false)
branches: true
# enable for pull requests coming from this repo (defaults to true)
pullRequests: true
# enable for pull requests coming from forks (defaults to false)
pullRequestsFromForks: true
# add a "Review in Gitpod" button as a comment to pull requests (defaults to true)
addComment: true
# add a "Review in Gitpod" button to pull requests (defaults to false)
addBadge: true
# add a label once the prebuild is ready to pull requests (defaults to false)
addLabel: prebuilt-in-gitpod
tasks:
- before: >
[[ ! -z $WAKATIME_API_KEY_64 ]] &&
echo $WAKATIME_API_KEY_64 | base64 -d > ~/.wakatime.cfg &&
mkdir -p ~/.ssh &&
[[ ! -z $SSH_PUBLIC_KEY ]] &&
echo $SSH_PUBLIC_KEY > ~/.ssh/id_rsa.pub &&
chmod 644 ~/.ssh/id_rsa.pub &&
[[ ! -z $SSH_PRIVATE_KEY ]] &&
echo $SSH_PRIVATE_KEY | base64 -d > ~/.ssh/id_rsa &&
chmod 600 ~/.ssh/id_rsa &&
[[ ! -z $GITCONFIG ]] &&
echo $GITCONFIG | base64 -d > ~/.gitconfig &&
chmod 644 ~/.gitconfig &&
git config --global --unset gpg.program &&
git config --global --unset core.editor &&
git config --global --unset safe.directory &&
[[ ! -z $GNUPG_KEY ]] &&
rm -rf ~/.gnupg &&
gpg --verbose --batch --import <(echo $GNUPG_KEY|base64 -d) &&
echo 'pinentry-mode loopback' >> ~/.gnupg/gpg.conf &&
git config --global user.signingkey $GNUPG_SIGNING_KEY &&
git config --global commit.gpgsign true
- init: sdk install java 17.0.6-tem && sdk install gradle 8.0.1
command: ./gradlew
# security issues, unauthorised commits to our repository
image: ghcr.io/brycensranch/gitpod-enhanced:latest
vscode:
extensions:
- davidanson.vscode-markdownlint