This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
52 lines (51 loc) · 2.92 KB
/
buildspec.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
---
version: 0.2
phases:
build:
commands:
- curl -qL -o jq https://stedolan.github.io/jq/download/linux64/jq && chmod +x ./jq
- curl -O https://bootstrap.pypa.io/get-pip.py
- python get-pip.py
- pip install awscli
- aws --version
- curl -qL -o aws_credentials.json http://169.254.170.2/$AWS_CONTAINER_CREDENTIALS_RELATIVE_URI > aws_credentials.json
- aws configure set region $AWS_REGION
- aws configure set aws_access_key_id `./jq -r '.AccessKeyId' aws_credentials.json`
- aws configure set aws_secret_access_key `./jq -r '.SecretAccessKey' aws_credentials.json`
- aws configure set aws_session_token `./jq -r '.Token' aws_credentials.json`
- ls -al
- yum install -y zip git
- cd web\ files && npm install --loglevel info --no-progress
- cd web\ files && sed -i 's@LunarXP@'"$SITENAME"'@' settings.json
- cd web\ files && sed -i 's@https://www.lunarxp.com/@'"$SITEURL"'@' settings.json
- cd web\ files && sed -i 's@lunar-xp-logo.png@'"$LOGONAME"'@' settings.json
- cd web\ files && sed -i 's@(800) 859-7656@'"$SITEPHONE"'@' settings.json
- cd web\ files && sed -i 's@info\@lunarxp.com@'"$SITEEMAIL"'@' settings.json
- cd web\ files && sed -i 's@800 N. Magnolia Blvd.@'"$SITEADDRESS"'@' settings.json
- cd web\ files && sed -i 's@Orlando@'"$SITECITY"'@' settings.json
- cd web\ files && sed -i 's@FL@'"$SITESTATE"'@' settings.json
- cd web\ files && sed -i 's@32803@'"$SITEPOSTAL"'@' settings.json
- cd web\ files && sed -i 's@https://www.facebook.com/@'"$SITEFACEBOOK"'@' settings.json
- cd web\ files && sed -i 's@https://twitter.com/@'"$SITETWITTER"'@' settings.json
- cd web\ files && sed -i 's@https://www.linkedin.com/@'"$SITELINKEDIN"'@' settings.json
- cd web\ files && sed -i 's@https://www.youtube.com/@'"$SITEYOUTUBE"'@' settings.json
- cd web\ files && sed -i 's@https://www.instagram.com/@'"$SITEINSTAGRAM"'@' settings.json
- cd web\ files && sed -i 's@#d60e96@'"$SITEPRIMARY"'@' scss/_theme-variables.scss
- cd web\ files && sed -i 's@#3d5d6f@'"$SITESECONDARY"'@' scss/_theme-variables.scss
- cd web\ files && sed -i 's@#ff9b27@'"$SITETERTIARY"'@' scss/_theme-variables.scss
- cd web\ files && sed -i 's@#ff8d02@'"$SITEQUATERNARY"'@' scss/_theme-variables.scss
- zip --symlinks -r lunarxp.zip web\ files www config.json
- aws s3 cp lunarxp.zip s3://solodev-aws-ha
- mkdir marketplace
- cd marketplace
- git init
- git remote add origin https://${GITUSER}:${GITTOKEN}@github.com/${GITORG}/${GITREPO}.git
- git config --global user.email "${GITUSER}@solodev.com"
- git config --global push.default simple
- git pull origin master
- mv ../lunarxp.zip depot/themes/
- cd depot/themes
- git add lunarxp.zip
- git commit -m "Updating LunarXP Theme"
- git push origin master
- rm -Rf lunarxp.zip