Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Move deployment scripts to a subdirectory

Artur Smęt7bab0a57edca
diff --git a/.circleci/config.yml b/.circleci/config.yml
index acd3031556..e8374c6ec3 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -6,7 +6,8 @@ jobs:
- image: docker:17.09.0-ce-git
steps:
- checkout
- - setup_remote_docker
+ - setup_remote_docker:
+ docker_layer_caching: true
- run:
name: Set version
command: |
@@ -14,7 +15,6 @@ jobs:
- run:
name: Build application Docker image
command: |
- docker pull mirumee/saleor:latest
docker build \
--build-arg AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
--build-arg AWS_LOCATION=$AWS_LOCATION \
@@ -22,7 +22,7 @@ jobs:
--build-arg AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
--build-arg AWS_STORAGE_BUCKET_NAME=$AWS_STORAGE_BUCKET_NAME \
--build-arg STATIC_URL=$STATIC_URL \
- --cache-from=mirumee/saleor:latest -t mirumee/saleor:latest .
+ -t mirumee/saleor:latest .
- run:
name: Run tests
command: |
diff --git a/Dockerrun.aws.json b/deployment/elasticbeanstalk/Dockerrun.aws.json
similarity index 100%
rename from Dockerrun.aws.json
rename to deployment/elasticbeanstalk/Dockerrun.aws.json
diff --git a/scripts/deploy_master.sh b/scripts/deploy_master.sh
index d618b3b5c4..e0a1eff78f 100755
--- a/scripts/deploy_master.sh
+++ b/scripts/deploy_master.sh
@@ -3,13 +3,14 @@
VERSION=$CIRCLE_SHA1
ZIP=$VERSION.zip
-zip -r $ZIP Dockerrun.aws.json
+cd deployment/elasticbeanstalk
+zip -r /tmp/$ZIP .
-aws s3 cp $ZIP s3://$VERSIONS_BUCKET/$ZIP
+#aws s3 cp /tmp/$ZIP s3://$VERSIONS_BUCKET/$ZIP
-aws elasticbeanstalk create-application-version --application-name saleor-demo \
- --version-label $VERSION --source-bundle S3Bucket=$VERSIONS_BUCKET,S3Key=$ZIP
+#aws elasticbeanstalk create-application-version --application-name saleor-demo \
+# --version-label $VERSION --source-bundle S3Bucket=$VERSIONS_BUCKET,S3Key=$ZIP
# Update the environment to use the new application version
-aws elasticbeanstalk update-environment --environment-name $MASTER_ENV_NAME \
- --version-label $VERSION
+#aws elasticbeanstalk update-environment --environment-name $MASTER_ENV_NAME \
+# --version-label $VERSION