Skip to content

Commit

Permalink
Added gitlab intergation (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
goruha authored Sep 18, 2018
1 parent f619731 commit fda8574
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions modules/codefresh/Makefile.pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,16 @@ endif
ifeq ($(PIPELINE_ENV),integration)
STAGE ?= $(FEATURE)

## GitHub integration support

ifeq ($(CF_PULL_REQUEST_ACTION),opened)
PIPELINE_ACTION = deploy
endif

ifeq ($(CF_PULL_REQUEST_ACTION),reopened)
PIPELINE_ACTION = deploy
endif

ifeq ($(CF_PULL_REQUEST_ACTION),synchronize)
PIPELINE_ACTION = deploy
endif
Expand All @@ -35,6 +41,27 @@ ifeq ($(PIPELINE_ENV),integration)
PIPELINE_ACTION = destroy
endif

## GitLab integration support
ifeq ($(CF_PULL_REQUEST_ACTION),open)
PIPELINE_ACTION = deploy
endif

ifeq ($(CF_PULL_REQUEST_ACTION),reopen)
PIPELINE_ACTION = deploy
endif

ifeq ($(CF_PULL_REQUEST_ACTION),update)
PIPELINE_ACTION = deploy
endif

ifeq ($(CF_PULL_REQUEST_ACTION),close)
PIPELINE_ACTION = destroy
endif

ifeq ($(CF_PULL_REQUEST_ACTION),merge)
PIPELINE_ACTION = destroy
endif

endif

ifneq ($(PIPELINE_ENV),)
Expand Down

0 comments on commit fda8574

Please sign in to comment.