Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Datree
Commits
d5ffa158
Unverified
Commit
d5ffa158
authored
3 years ago
by
Alex Fedin
Committed by
GitHub
3 years ago
Browse files
Options
Download
Plain Diff
Merge branch 'staging' into test-refactor
parents
05bdbce1
57f903e8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.github/workflows/release.yml
+1
-1
.github/workflows/release.yml
.travis.yml
+1
-1
.travis.yml
scripts/deploy_release_candidate.sh
+3
-1
scripts/deploy_release_candidate.sh
with
5 additions
and
3 deletions
+5
-3
.github/workflows/release.yml
+
1
-
1
View file @
d5ffa158
...
...
@@ -23,7 +23,7 @@ jobs:
commit_sha=${{ github.sha }}
echo "branch name: $branch_name"
if [ "$branch_name" != "
ma
in" ]; then
if [ "$branch_name" != "
stag
in
g
" ]; then
# TODO: change back to `main` after deleting staging branch
echo "Release should build only from main branch"
exit 1
fi
...
...
This diff is collapsed.
Click to expand it.
.travis.yml
+
1
-
1
View file @
d5ffa158
...
...
@@ -37,7 +37,7 @@ deploy:
skip_cleanup
:
true
script
:
bash ./scripts/release.sh
on
:
branch
:
main
branch
:
staging
# TODO: change to `main` when replacing default branch to
main
condition
:
$RELEASE_DATREE_PROD = 'true'
env
:
...
...
This diff is collapsed.
Click to expand it.
scripts/deploy_release_candidate.sh
+
3
-
1
View file @
d5ffa158
...
...
@@ -9,7 +9,9 @@ latestRcTag=$(git tag --sort=-version:refname | grep "^${MAJOR_VERSION}.${MINOR_
if
[
"
$latestRcTag
"
==
""
]
;
then
nextVersion
=
$MAJOR_VERSION
.
$MINOR_VERSION
.0
else
nextVersion
=
$(
echo
$latestRcTag
|
awk
-F
.
'{$NF = $NF + 1;} 1'
|
sed
's/ /./g'
)
# TODO: remove the comment once we are ready to remove the staging deployment
# nextVersion=$(echo $latestRcTag | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g')
nextVersion
=
$latestRcTag
fi
export
DATREE_BUILD_VERSION
=
$nextVersion
-rc
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help