-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitpod.yml
48 lines (48 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
image: gitpod/workspace-python-3.10
tasks:
- name: AWS install, configure, get secrets
init: |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install -i /workspace/aws-cli -b /workspace/bin
rm -r aws/
rm awscliv2.zip
command: |
printf 'export PATH="%s:$PATH"\n' "/workspace/bin" >> $HOME/.bashrc
source $HOME/.bashrc
aws --profile default configure set aws_access_key_id $AWS_ACCESS_KEY_ID
aws --profile default configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
aws s3 cp s3://skill-assessment-app/dev-secrets/.env.download.dev.sh .
bash .env.download.dev.sh && exit
- name: Pyenv install python
init: |
python -m venv venv
source venv/bin/activate
pip install --upgrade -r requirements.txt
echo "Prebuild is almost ready -- please be patient..."
command: |
printf 'export PATH="%s:$PATH"\n' "/workspace/bin" >> $HOME/.bashrc
source $HOME/.bashrc
source venv/bin/activate
vscode:
extensions:
- cweijan.vscode-mysql-client2
- ms-python.python
- ms-azuretools.vscode-docker
- GitHub.copilot
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: false
# add a label once the prebuild is ready to pull requests (defaults to false)
addLabel: prebuilt-in-gitpod