-
Notifications
You must be signed in to change notification settings - Fork 160
/
Copy pathcodefresh.yml
35 lines (34 loc) · 1009 Bytes
/
codefresh.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
version: '1.0'
steps:
main_clone:
title: Cloning main repository...
type: git-clone
git: cf_github
repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
revision: '${{CF_REVISION}}'
MyDepDockerImage:
title: Building Docker Image with Jekyll Deps
type: build
image_name: docs-jekyll-deps
working_directory: ./
tag: ${{CF_BRANCH_TAG_NORMALIZED}}
dockerfile: Dockerfile.dep
DocGeneration:
title: Creating static site
image: ${{MyDepDockerImage}}
commands:
- chmod 777 -R .
- "sed -i 's|^url:.*|url: \"${{JEKYLL_URL}}\"|' _config.yml"
- "sed -i 's|^baseurl:.*|baseurl: \"${{MY_JEKYLL_BASEURL}}\"|' _config.yml"
- cat _config.yml
- jekyll build --destination _site
S3WebsiteDeploy:
title: Copying static site to s3 website
image: mesosphere/aws-cli
commands:
- aws s3 sync ./_site/ s3://${{S3_BUCKETNAME}}/csdp-docs --delete
when:
branch:
only:
- master
#- /^feature-.*/i