Skip to content

Commit

Permalink
Merge pull request #9 from guardian/aa-release-script
Browse files Browse the repository at this point in the history
add a release script
  • Loading branch information
akash1810 authored Jun 13, 2019
2 parents ea48376 + f233d03 commit 6c25322
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.DS_Store

*.iml
*.iml
target
17 changes: 17 additions & 0 deletions create-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

set -e

OUTPUT_DIR=target
TAR_FILE=${OUTPUT_DIR}/dev-nginx.tar.gz
REPORT_FILE=${OUTPUT_DIR}/report.txt

rm -rf ${OUTPUT_DIR}
mkdir -p ${OUTPUT_DIR}

tar -zcf ${TAR_FILE} bin script
SHA256=$(shasum -a 256 ${TAR_FILE})

echo -e "$(date)\n${SHA256}" >> ${REPORT_FILE}

cat ${REPORT_FILE}
2 changes: 2 additions & 0 deletions script/add-to-hosts-file
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -e

# colours
YELLOW='\033[1;33m'
NC='\033[0m' # no colour - reset console colour
Expand Down
2 changes: 2 additions & 0 deletions script/link-config
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -e

# colours
YELLOW='\033[1;33m'
NC='\033[0m' # no colour - reset console colour
Expand Down
2 changes: 2 additions & 0 deletions script/locate-nginx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash

set -e

nginx -V 2>&1 | grep "configure arguments:" | sed 's/[^*]*conf-path=\([^ ]*\)\/nginx\.conf.*/\1/g'
2 changes: 2 additions & 0 deletions script/restart-nginx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -e

# colours
YELLOW='\033[1;33m'
NC='\033[0m' # no colour - reset console colour
Expand Down

0 comments on commit 6c25322

Please sign in to comment.