.gitlab-ci.yml 674 Bytes
stages:
  - build
  - deploy

build:
  image: ruby:2.1
  stage: build
  script:
  - gem install bundler
  - bundle install
  - chmod +x ./script/cibuild
  - ./script/cibuild kizil.io
  - ./script/cibuild ahmetkizilay.com
  cache:
    paths:
    - public_ahmetkizilay.com
    - public_kizil.io
  artifacts:
    paths:
    - public_ahmetkizilay.com
    - public_kizil.io
  only:
  - master

deploy:
  image: python:latest
  stage: deploy
  script:
  - pip install awscli
  - aws configure set preview.cloudfront true
  - chmod +x ./script/cideploy
  - ./script/cideploy kizil.io $CLOUDFRONT_DISTRIBUTION
  - cd public_ahmetkizilay.com
  - aws s3 sync . s3://ahmetkizilay.com/