diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..beb9df9 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,29 @@ +kind: pipeline +type: docker +name: default +#secrets: [ AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY ] + +steps: + - name: Version check + image: plugins/hugo + commands: + - echo "Checking Hugo version." + - hugo version + - echo "Checking folder" + - ls + - name: Build + image: plugins/hugo + settings: + validate: true + commands: + - hugo --config hugo.toml + #- minify -r -o /drone/src/build /drone/src/build + - name: Deploy + image: plugins/hugo + environment: + AWS_ACCESS_KEY_ID: + from_secret: AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY: + from_secret: AWS_SECRET_ACCESS_KEY + commands: + - hugo deploy --config hugo.toml \ No newline at end of file diff --git a/hugo.toml b/hugo.toml index bf362e9..c11cd63 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,4 +1,10 @@ baseURL = 'https://example.org/' languageCode = 'en-us' title = 'My New Hugo Site' -theme = "hyde" \ No newline at end of file +theme = "hyde" + + +[deployment] + +[[deployment.targets]] + URL = "s3://bucket?endpoint=garage.deuxfleurs.fr&s3ForcePathStyle=true®ion=garage" \ No newline at end of file