Skip to content

Commit

Permalink
Merge pull request #115 from screwdriver-cd/k8s-deploy
Browse files Browse the repository at this point in the history
feat: change deployment from GH Pages to K8s
  • Loading branch information
jithine authored Oct 9, 2017
2 parents 476abf5 + 595a576 commit fb8becd
Showing 1 changed file with 25 additions and 21 deletions.
46 changes: 25 additions & 21 deletions screwdriver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ shared:
jobs:
main:
steps:
- bundle_install: bundle install
- build: bundle exec jekyll build --source docs --destination _site
- bundle_install: bundle install
- build: bundle exec jekyll build --source docs --destination _site

publish:
environment:
Expand All @@ -20,25 +20,29 @@ jobs:
- GIT_KEY
- GITHUB_TOKEN
steps:
- setup-ci: |
git clone https://github.com/screwdriver-cd/toolbox.git ci
cp build/git-ssh.sh ci/git-ssh.sh
- install: bundle install
- build: bundle exec jekyll build --source docs --destination _site
- package: tar -C _site -cvzf $RELEASE_FILE .
- tag: ./ci/git-tag.sh
- publish: ./ci/git-release.sh
- docker: |
./ci/git-latest.sh
export DOCKER_TAG=`cat VERSION`
./ci/docker-trigger.sh
- setup-ci: |
git clone https://github.com/screwdriver-cd/toolbox.git ci
cp build/git-ssh.sh ci/git-ssh.sh
- install: bundle install
- build: bundle exec jekyll build --source docs --destination _site
- package: tar -C _site -cvzf $RELEASE_FILE .
- tag: ./ci/git-tag.sh
- publish: ./ci/git-release.sh
- docker: |
./ci/git-latest.sh
export DOCKER_TAG=`cat VERSION`
./ci/docker-trigger.sh
deploy:
steps:
- setup-ci: git clone https://gist.github.com/3d2388b2a7ba658cdcdaffa8cd874e50.git ci
- bundle_install: bundle install
- build: bundle exec jekyll build --source docs --destination _site
- deploy: ./deploy.sh
environment:
DOCKER_REPO: screwdrivercd/guide
K8S_CONTAINER: guide
K8S_IMAGE: screwdrivercd/guide
K8S_HOST: api.k8s.screwdriver.cd
K8S_DEPLOYMENT: sdguide
secrets:
# Pushing tags to Git
- GIT_KEY
- K8S_TOKEN
steps:
- setup-ci: git clone https://github.com/screwdriver-cd/toolbox.git ci
- wait-docker: DOCKER_TAG=`git describe --abbrev=0 --tags` ./ci/docker-wait.sh
- deploy-k8s: K8S_TAG=`git describe --abbrev=0 --tags` ./ci/k8s-deploy.sh

0 comments on commit fb8becd

Please sign in to comment.