variables:
  GIT_SUBMODULE_STRATEGY: recursive

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://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
  only:
  - master