-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.yml
53 lines (52 loc) · 1.96 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
49
50
51
52
53
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
tasks:
- name: Gitpod config (browser open, workspace bin path)
init: |
mkdir -p /workspace/bin
cat > /workspace/bin/open.sh <<'EOF'
#!/bin/bash
exec gp preview --external "$@"
EOF
chmod +x /workspace/bin/open.sh
command: |
sudo update-alternatives --install /usr/bin/www-browser www-browser /workspace/bin/open.sh 100
echo "export PATH=\"/workspace/bin:\$PATH\"" >> ~/.bashrc
exit
- name: Install conveyor (at startup)
command: |
tmpdir="$(mktemp -d)"
cd $tmpdir
wget https://app.conveyordata.com/api/info/cli/location/linux/amd64 -O conveyor_linux_amd64.tar.gz
tar -zxvf conveyor_linux_amd64.tar.gz
chmod +x bin/linux/amd64/conveyor
mkdir -p /workspace/bin
sudo install bin/linux/amd64/conveyor /usr/local/bin/conveyor
cd && rm -r $tmpdir
exit
- name: Install AWS CLI (during prebuild)
init: |
tmpdir="$(mktemp -d)"
cd $tmpdir
wget "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -O "awscliv2.zip"
unzip awscliv2.zip
mkdir -p /workspace/aws-cli
./aws/install --install-dir /workspace/aws-cli --bin-dir /workspace/bin
cd && rm -r $tmpdir
command: exit
# Prebuild settings
github:
prebuilds:
# enable for the default branch (defaults to true)
main: 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 check to pull requests (defaults to true)
addCheck: true
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
addComment: false
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
addBadge: false