-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitpod.yml
More file actions
29 lines (27 loc) · 1.04 KB
/
.gitpod.yml
File metadata and controls
29 lines (27 loc) · 1.04 KB
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
# Empty Template for private repos: https://gitpod.new/
# image: gitpod/workspace-full
image: mcr.microsoft.com/devcontainers/base:ubuntu
tasks:
- name: Setup
before: |
echo "gitpod:gitpod" | sudo chpasswd
/bin/bash ./test/setup.sh
/bin/bash ./.gitpod/tailscale.sh
init: |
if [ -n "${TAILSCALE_STATE_MYPROJECT}" ]; then
sudo mkdir -p /var/lib/tailscale
echo "${TAILSCALE_STATE_MYPROJECT}" | sudo tee /var/lib/tailscale/tailscaled.state > /dev/null
fi
sudo tailscaled
command: |
if [ -n "${TAILSCALE_STATE_MYPROJECT}" ]; then
sudo -E tailscale up
else
sudo -E tailscale up --hostname "gitpod-${GITPOD_GIT_USER_NAME// /-}-$(echo ${GITPOD_WORKSPACE_CONTEXT} | jq -r .repository.name)"
# store the tailscale state into gitpod user
gp env TAILSCALE_STATE_MYPROJECT="$(sudo cat /var/lib/tailscale/tailscaled.state)"
fi
diodon && sudo service xrdp restart
vscode:
extensions:
- ms-vscode-remote.remote-containers