Skip to content
Snippets Groups Projects
Commit c69a428c authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Setup dev deploy

parent 42f3415b
Branches
Tags
2 merge requests!18Develop,!15Deploy.dev
......@@ -8,6 +8,8 @@ before_script:
build:
script:
- singularity run 'docker://monachus/hugo' hugo
- singularity run 'docker://monachus/hugo' hugo deploy aws-dev --maxDeletes -1
- aws s3 ls s3://strandlab.dev/ --recursive | awk '{cmd="aws s3api put-object-acl --acl bucket-owner-full-control --bucket strandlab.dev --key "$4; system(cmd)}'
artifacts:
paths:
- public
......@@ -17,7 +19,7 @@ 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)}'
## - aws s3 ls s3://strandlab/ --recursive | awk '{cmd="aws s3api put-object-acl --acl bucket-owner-full-control --bucket strandlab --key "$4; system(cmd)}'
artifacts:
paths:
- public
......
......@@ -82,4 +82,7 @@ paginate = 10
[[deployment.targets]]
name = "aws"
URL = "s3://strandlab?region=us-east-2"
\ No newline at end of file
URL = "s3://strandlab?region=us-east-2"
[[deployment.targets]]
name = "aws-dev"
URL = "s3://strandlab.dev?region=us-east-2"
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment