Skip to content

Commit 3d285b9

Browse files
Merge pull request #1098 from travis-ci/deploy
deploy on master
2 parents 3e09ea8 + abcb948 commit 3d285b9

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ rvm: 2.6.5
77

88
script: "bundle exec rake knapsack:rspec"
99

10+
addons:
11+
- snaps:
12+
- name: docker
13+
channel: latest/beta
14+
1015
env:
1116
global:
17+
- PATH=/snap/bin:$PATH
1218
- RUBY_GC_MALLOC_LIMIT=90000000
1319
- RUBY_GC_HEAP_FREE_SLOTS=200000
1420
- CI_NODE_TOTAL=3
@@ -33,3 +39,9 @@ jobs:
3339
before_script: echo skip
3440
script: make ship
3541
if: commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true
42+
43+
deploy:
44+
- provider: script
45+
script: make ship
46+
on:
47+
branch: master

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ docker-push-branch:
4848
.PHONY: ship
4949
ship: docker-build docker-login
5050

51-
ifeq ($(BRANCH),master)
51+
ifeq ($(TRAVIS_BRANCH),master)
5252
ifeq ($(TRAVIS_PULL_REQUEST),false)
5353
ship: docker-push-latest-master
5454
endif

0 commit comments

Comments
 (0)