Merge branch 'move-to-gitlab' into 'master'
Added gitlabci settings See merge request softinio/softinio.com!9
This commit is contained in:
commit
8a22ce9e4e
2 changed files with 19 additions and 15 deletions
19
.gitlab-ci.yml
Normal file
19
.gitlab-ci.yml
Normal 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
|
||||
|
15
wercker.yml
15
wercker.yml
|
@ -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
|
Loading…
Reference in a new issue