diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 127448d00842fd73d7dcc131bc26e0a0a95db42e..1b510c513e3260dc1e1b1a90afb8ca1ea5d76f3f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,11 +3,21 @@ variables: before_script: - module load singularity/3.0.2 + - module load awscli - +build: + script: + - singularity run 'docker://monachus/hugo' hugo + artifacts: + paths: + - public + only: + - develop deploy: script: - - singularity run 'docker://gohugoio/hugo' hugo && hugo deploy aws --maxDeletes -1 + - singularity run 'docker://monachus/hugo' hugo + - singularity run 'docker://monachus/hugo' hugo deploy aws --maxDeletes -1 + - aws s3 ls s3://www.strandlab.net/ --recursive | awk '{cmd="aws s3api put-object-acl --acl bucket-owner-full-control --bucket www.strandlab.net --key "$4; system(cmd)}' artifacts: paths: - public