fix deployment
This commit is contained in:
parent
8cc5d19e5a
commit
c8d653b994
2 changed files with 3 additions and 4 deletions
|
@ -62,10 +62,9 @@ jobs:
|
|||
before_install: skip
|
||||
env: BITRIX_EDITION=business_encode
|
||||
- stage: deploy
|
||||
before_script: skip
|
||||
before_script: export VERSION=`php bin/bitrix-version`
|
||||
script: make build_release
|
||||
before_deploy:
|
||||
- export VERSION=`php bin/bitrix-version`
|
||||
- export ARCHIVE_NAME=$TRAVIS_BUILD_DIR/release/$VERSION.tar.gz
|
||||
- git config --local user.name "retailCRM"
|
||||
- git config --local user.email "support@retailcrm.ru"
|
||||
|
@ -79,4 +78,4 @@ jobs:
|
|||
on:
|
||||
condition: "$LAST_TAG != $CURRENT_VERSION"
|
||||
if: branch = master AND type = push
|
||||
after_deploy: make cleanup
|
||||
after_success: make cleanup
|
||||
|
|
2
Makefile
2
Makefile
|
@ -41,7 +41,7 @@ create_db:
|
|||
mysqladmin create $(DB_BITRIX_NAME) --user=$(DB_BITRIX_LOGIN) --password=$(DB_BITRIX_PASS)
|
||||
|
||||
build_release: build_release_dir
|
||||
bin/build $(ROOT_DIR)/release/$(CURRENT_VERSION)
|
||||
bin/build $(ROOT_DIR)/release/$(VERSION)
|
||||
|
||||
build_release_dir: build_diff_file
|
||||
php bin/build-release
|
||||
|
|
Loading…
Add table
Reference in a new issue