diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..f72d7c1 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 + diff --git a/wercker.yml b/wercker.yml deleted file mode 100644 index 1ce0149..0000000 --- a/wercker.yml +++ /dev/null @@ -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