Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
85530f49
Commit
85530f49
authored
9 years ago
by
Gabriel Engel
Browse files
Options
Downloads
Patches
Plain Diff
only deploy from master on tags
parent
249196c1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis.yml
+7
-7
7 additions, 7 deletions
.travis.yml
.travis/docker.sh
+2
-2
2 additions, 2 deletions
.travis/docker.sh
with
9 additions
and
9 deletions
.travis.yml
+
7
−
7
View file @
85530f49
...
@@ -4,7 +4,6 @@ branches:
...
@@ -4,7 +4,6 @@ branches:
only
:
only
:
-
develop
-
develop
-
master
-
master
-
even-faster-deploy
node_js
:
node_js
:
-
'
0.12'
-
'
0.12'
cache
:
cache
:
...
@@ -33,14 +32,15 @@ deploy:
...
@@ -33,14 +32,15 @@ deploy:
on
:
on
:
branch
:
branch
:
-
develop
-
develop
-
master
-
provider
:
s3
-
even-faster-deploy
access_key_id
:
"
AKIAIKIA7H7D47KUHYCA"
-
provider
:
releases
secret_access_key
:
$ACCESSKEY
api_key
:
"
GITHUB
OAUTH
TOKEN"
bucket
:
"
rocketchatbuild"
file
:
"
FILE
TO
UPLOAD"
skip_cleanup
:
true
skip_cleanup
:
true
local_dir
:
/tmp/deploy
on
:
on
:
branch
:
master
tags
:
true
tags
:
true
branch
:
-
master
after_deploy
:
after_deploy
:
-
.travis/docker.sh
-
.travis/docker.sh
This diff is collapsed.
Click to expand it.
.travis/docker.sh
+
2
−
2
View file @
85530f49
...
@@ -13,9 +13,9 @@ CURL_URL="https://registry.hub.docker.com/u/rocketchat/rocket.chat/trigger/$PUSH
...
@@ -13,9 +13,9 @@ CURL_URL="https://registry.hub.docker.com/u/rocketchat/rocket.chat/trigger/$PUSH
if
[
-z
${
TRAVIS_TAG
+x
}
]
;
if
[
-z
${
TRAVIS_TAG
+x
}
]
;
then
then
CURL_DATA
=
'{"source_type": "Branch", "source_name": "'
$TRAVIS_BRANCH
'", "docker_tag": "'
$
TAG
.
$
TRAVIS_BUILD_NUMBER
.
$TRAVIS_BRANCH
'"}'
;
CURL_DATA
=
'{"source_type": "Branch", "source_name": "'
$TRAVIS_BRANCH
'", "docker_tag": "'
$TRAVIS_BUILD_NUMBER
.
$TRAVIS_BRANCH
'"}'
;
else
else
CURL_DATA
=
'{"source_type": "Tag", "source_name": "'
$TAG
'", "docker_tag": "'
$
TAG
.
$
TRAVIS_BUILD_NUMBER
.
$TRAVIS_BRANCH
'"}'
;
CURL_DATA
=
'{"source_type": "Tag", "source_name": "'
$
TRAVIS_
TAG
'", "docker_tag": "'
$TRAVIS_BUILD_NUMBER
.
$TRAVIS_BRANCH
.
$TRAVIS_TAG
'"}'
;
fi
fi
curl
-H
"
${
CURL_HEADER
}
"
--data
"
${
CURL_DATA
}
"
-X
POST
"
${
CURL_URL
}
"
curl
-H
"
${
CURL_HEADER
}
"
--data
"
${
CURL_DATA
}
"
-X
POST
"
${
CURL_URL
}
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment