Last active
May 10, 2017 18:17
-
-
Save moozer/43177666b00e94de5cfaadd83b015d90 to your computer and use it in GitHub Desktop.
testtest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-username: writeyourusernamehere | |
github-password: writeyourpasswordhere |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is how github hosts its webpages! ;)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Hello Lars</h1> | |
<p>Added a comment</p> | |
dette er en comment II | |
<p> Showed Alex</p> | |
Click <a href="someotherlink.html">here</a> to go to someotherlink.html! | |
<li>Random change</li> | |
Click <a href="reallink.html">here</a> for breaking/working link! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jobs: | |
- name: build-jekyll | |
public: true | |
plan: | |
- get: repository | |
trigger: true | |
- get: gist | |
- task: build | |
config: | |
platform: linux | |
image_resource: | |
type: docker-image | |
source: {repository: praqma/gh-pages} | |
inputs: | |
- name: repository | |
- name: gist | |
outputs: | |
- name: site | |
run: | |
path: sh | |
args: | |
- -exc | |
- | | |
git clone gist site | |
cd repository && jekyll build && cp _site/* ../site && cd ../site | |
git config --global user.email "nobody@special.praqma" | |
git config --global user.name "praqma" && git add . | |
git commit -m "updated gist" | |
on_failure: | |
put: slack-alert | |
params: | |
channel: '#general' | |
text: | | |
The build failed. Please go correct it at: | |
http://192.168.100.4:8080//teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME | |
or at: | |
http://192.168.100.4:8080//builds/$BUILD_ID | |
- put: gist | |
params: | |
repository: site | |
- name: test-site | |
public: true | |
plan: | |
- get: repository | |
passed: [build-jekyll] | |
trigger: true | |
- task: curl-site | |
config: | |
platform: linux | |
image_resource: | |
type: docker-image | |
source: | |
repository: praqma/gh-pages | |
run: | |
path: sh | |
args: | |
- -exc | |
- | | |
apt-get update | |
apt-get install -y curl | |
curl https://bl.ocks.org/sharor/raw/4b2015849c31bfb860c6a021ba9ed63a/ | |
on_failure: | |
put: slack-alert | |
params: | |
channel: '#general' | |
text: | | |
The build failed. Please go correct it at: | |
http://192.168.100.4:8080//teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME | |
or at: | |
http://192.168.100.4:8080//builds/$BUILD_ID | |
- task: link-checker | |
config: | |
platform: linux | |
image_resource: | |
type: docker-image | |
source: {repository: praqma/linkchecker} | |
run: | |
path: sh | |
args: | |
- -exc | |
- | | |
linkchecker http://bl.ocks.org/sharor/raw/4b2015849c31bfb860c6a021ba9ed63a/ | |
on_failure: | |
put: slack-alert | |
params: | |
channel: '#general' | |
text: | | |
The build failed. Please go correct it at: | |
http://192.168.100.4:8080//teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME | |
or at: | |
http://192.168.100.4:8080//builds/$BUILD_ID | |
- name: update-production-site | |
public: true | |
plan: | |
- get: repository | |
passed: [test-site] | |
- put: github-pages | |
params: | |
repository: repository | |
force: true | |
resources: | |
- name: repository | |
type: git | |
source: | |
uri: https://github.com/Sharor/concourse-workshop.git | |
branch: master | |
username: {{github-username}} | |
password: {{github-password}} | |
- name: gist | |
type: git | |
source: | |
uri: https://gist.github.com/4b2015849c31bfb860c6a021ba9ed63a.git | |
branch: master | |
username: {{github-username}} | |
password: {{github-password}} | |
- name: github-pages | |
type: git | |
source: | |
uri: https://github.com/Sharor/concourse-workshop.git | |
branch: gh-pages | |
username: {{github-username}} | |
password: {{github-password}} | |
- name: slack-alert | |
type: slack-notification | |
source: | |
url: https://hooks.slack.com/services/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 | |
resource_types: | |
- name: slack-notification | |
type: docker-image | |
source: | |
repository: cfcommunity/slack-notification-resource | |
tag: latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sfdsf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment