Skip to content

Commit

Permalink
Automatic OTRS version update: 6.0.20 -> 6.0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
juanluisbaptiste committed Aug 27, 2019
1 parent 9ee2da4 commit 3e44059
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ publish:
- latest
# - $${BRANCH}-$${COMMIT:0:8}
# - 6.0.6-$${COMMIT:0:8}
- 6.0.20
- 6.0.21
file: otrs/Dockerfile
context: otrs
environment:
Expand Down
5 changes: 3 additions & 2 deletions otrs/check_otrs_latest_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ function control_c() {
function cleanup(){
#Remove temp directory
print_info "Removing temp directory..."
#rm -fr ${tempdir}
cat ${tempdir}/docker-otrs/.drone.yml
rm -fr ${tempdir}
return $?
}

Expand Down Expand Up @@ -110,7 +111,7 @@ if [ $? -eq 0 ]; then
if [ $? -eq 0 ];then

verbose "Updating version in drone.io build file"
sed -i s/.*${docker_otrs_version}/ - ${otrs_version}/g .drone.yml
sed -i s/${docker_otrs_version}/${otrs_version}/g .drone.yml
if [ $? -gt 0 ];then
verbose "ERROR: Cannot update version tag in .drone.yml file !: ${out}" ${ERROR_CODE} && exit 1
fi
Expand Down

0 comments on commit 3e44059

Please sign in to comment.