Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use short SHA1 if version is not tagged
Artur Smęt19f0d4fd3e15
diff --git a/.circleci/config.yml b/.circleci/config.ymlindex e8374c6ec3..d308280536 100644--- a/.circleci/config.yml+++ b/.circleci/config.yml@@ -11,7 +11,13 @@ jobs:- run:name: Set versioncommand: |- sed -i.bak "s#'dev'#'$(git describe --tags)'#" saleor/__init__.py+ export SALEOR_VERSION=$(git rev-parse --short HEAD)+ if [ -n "$CIRCLE_TAG" ]; then+ export SALEOR_VERSION=$(git describe --tags)+ fi+ sed -i.bak "s#'dev'#'$SALEOR_VERSION'#" saleor/__init__.py++- run:name: Build application Docker imagecommand: |@@ -66,8 +72,6 @@ workflows:- build:filters:branches:- only:- - master- - feature/master-deployment+ only: mastertags:only: /demo.*/diff --git a/scripts/deploy_master.sh b/scripts/deploy_master.shindex e0a1eff78f..142574f263 100755--- a/scripts/deploy_master.sh+++ b/scripts/deploy_master.sh@@ -6,11 +6,11 @@ ZIP=$VERSION.zipcd deployment/elasticbeanstalkzip -r /tmp/$ZIP .-#aws s3 cp /tmp/$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