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

Pass build artifact to deploys

parent c69a428c
Branches
Tags
2 merge requests!18Develop,!15Deploy.dev
Pipeline #5580 passed with stage
in 4 seconds
......@@ -5,23 +5,36 @@ before_script:
- module load singularity/3.0.2
- module load awscli
stages:
- build_stage
- deploy_stage
build:
stage: build_stage
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
- public/
expire_in: 1 week
cache:
paths:
- public/
deploy.dev:
stage: deploy_stage
script:
- singularity run 'docker://monachus/hugo' hugo deploy aws-dev --maxDeletes -1
dependencies:
- build
only:
- develop
deploy:
deploy.live:
stage: deploy_stage
script:
- singularity run 'docker://monachus/hugo' hugo
## - singularity run 'docker://monachus/hugo' hugo deploy aws --maxDeletes -1
## - 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
- singularity run 'docker://monachus/hugo' hugo deploy aws --maxDeletes -1
dependencies:
- build
only:
- master
\ 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