Merge branch 'move-to-gitlab' into 'master'

Added gitlabci settings

See merge request softinio/softinio.com!9
This commit is contained in:
Salar Rahmanian 2017-12-15 14:41:56 +00:00
commit 8a22ce9e4e
2 changed files with 19 additions and 15 deletions

19
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,19 @@
# .gitlab-ci.yml
image: publysher/hugo
production:
type: deploy
before_script:
- apt-get update
- apt-get -qq install python python-pip ca-certificates
- pip install awscli
script:
- hugo
- aws s3 sync public/ s3://$AWS_BUCKET
artifacts:
paths:
- public
only:
- master

View file

@ -1,15 +0,0 @@
box: debian
build:
steps:
- arjen/hugo-build:
version: "0.19"
config: config.toml
flags: --disableSitemap=false
deploy:
steps:
- s3sync:
source_dir: public/
delete-removed: true
bucket-url: $AWS_BUCKET_URL
key-id: $AWS_ACCESS_KEY_ID
key-secret: $AWS_SECRET_ACCESS_KEY