1
0
Fork 0
mirror of synced 2025-04-20 01:21:01 +00:00

fix deploy stage

This commit is contained in:
Akolzin Dmitry 2020-03-23 16:09:45 +03:00
parent 4356715473
commit bc5394ae45
2 changed files with 4 additions and 2 deletions

View file

@ -66,5 +66,5 @@ jobs:
skip_cleanup: true
on:
condition: "$LAST_TAG != $CURRENT_VERSION"
if: branch = master AND type = push
if: branch = master AND type = push AND fork = false
after_deploy: make cleanup

View file

@ -41,8 +41,10 @@ create_db:
mysqladmin create $(DB_BITRIX_NAME) --user=$(DB_BITRIX_LOGIN) --password=$(DB_BITRIX_PASS)
build_release: build_release_dir
ifneq ($(LAST_TAG), $(CURRENT_VERSION))
ifneq ($(LAST_TAG),$(CURRENT_VERSION))
bash bin/build $(VERSION) $(ROOT_DIR)/release/
else
@exit 0
endif
build_release_dir: build_diff_file