Commit 5fc34c39 authored by Alexander Sachs's avatar Alexander Sachs

set deployment directly to root folder instead of master

parent 33af9ce6
Pipeline #35665 passed with stages
in 3 minutes and 2 seconds
......@@ -39,10 +39,10 @@ deploys3:
before_script:
- pip install awscli # Install the SDK
script:
- aws s3 cp dist/ s3://${BUCKET_NAME}/${CI_COMMIT_REF_SLUG} --recursive # Replace example-bucket with your bucket
- aws s3 cp dist/ s3://${BUCKET_NAME}/ --recursive # Replace example-bucket with your bucket
environment:
name: ${CI_COMMIT_REF_SLUG}
url: http://${BUCKET_NAME}.s3-website.${AWS_DEFAULT_REGION}.amazonaws.com/${CI_COMMIT_REF_SLUG} # This is the url of the bucket we saved before
url: http://${BUCKET_NAME}.s3-website.${AWS_DEFAULT_REGION}.amazonaws.com/ # This is the url of the bucket we saved before
on_stop: clean_s3 # When the branch is merged, we clean up after ourself
clean_s3:
......@@ -51,7 +51,7 @@ clean_s3:
before_script:
- pip install awscli
script:
- aws s3 rm s3://${BUCKET_NAME}/${CI_COMMIT_REF_SLUG} --recursive # Replace example-bucket with your bucket
- aws s3 rm s3://${BUCKET_NAME}/ --recursive # Replace example-bucket with your bucket
environment:
name: ${CI_COMMIT_REF_SLUG}
action: stop
......
Markdown is supported
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