forked from kjhenner/courseware-lms-content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
distelli-manifest.yml
40 lines (40 loc) · 954 Bytes
/
distelli-manifest.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
---
esquared/courseware-lms-content:
Build:
- PATH=/opt/puppetlabs/puppet/bin:$PATH
- cd _lmscontent
- |
cat > _tasks/config.yaml <<EOF
---
credentials:
github:
user: puppet-edu-courseware
token: $GITHUB_TOKEN
learndot:
production:
token: $LD_PROD_TOKEN
staging:
token: $LD_STAG_TOKEN
repos:
courseware-lms-content:
url: https://github.com/puppetlabs/courseware-lms-content.git
branch: master
EOF
# Hidden directories don't ship
- cd ..
- mv .git/ git_history/
PkgInclude:
- '*'
PostInstall:
- PATH=/opt/puppetlabs/puppet/bin:$PATH
- mv git_history/ .git/
- cd _lmscontent
- |
if [ $DISTELLI_ENV = "LearnDot_Production" ]
then
LDENV='production'
else
LDENV='staging'
fi
- 'rake download:repos'
- 'rake release:$LDENV'