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: ...@@ -8,6 +8,8 @@ before_script:
build: build:
script: script:
- singularity run 'docker://monachus/hugo' hugo - 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: artifacts:
paths: paths:
- public - public
...@@ -17,7 +19,7 @@ deploy: ...@@ -17,7 +19,7 @@ deploy:
script: script:
- singularity run 'docker://monachus/hugo' hugo - singularity run 'docker://monachus/hugo' hugo
## - singularity run 'docker://monachus/hugo' hugo deploy aws --maxDeletes -1 ## - 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: artifacts:
paths: paths:
- public - public
......
...@@ -82,4 +82,7 @@ paginate = 10 ...@@ -82,4 +82,7 @@ paginate = 10
[[deployment.targets]] [[deployment.targets]]
name = "aws" name = "aws"
URL = "s3://strandlab?region=us-east-2" URL = "s3://strandlab?region=us-east-2"
\ No newline at end of file [[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