Lines Matching +full:rev +full:- +full:parse
2 # Note: this is managed by Ansible, as deploy-sh.j2
3 # Don't modify this file unless its name is deploy-sh.j2
6 WORKDIR=${TMPDIR-/tmp} # keep all random files here
11 rm -f ${WORKDIR}/git-list.txt
17 git fetch -p || exit 1
18 git clean -f -d || echo 'warning: err on cleanup'
21 echo "cldr-trunk was at :" $(git rev-parse --short HEAD)
22 echo -n "you want to move to:"
23 git rev-parse --short "${GITHUB_SHA}" || exit 1 # fail on err
24 if [[ $(git rev-parse --short HEAD) = $(git rev-parse --short "${GITHUB_SHA}") ]];
29 echo "---"
30 (git log --oneline HEAD..${GITHUB_SHA} | tee ${WORKDIR}/git-list.txt) || exit 1
31 echo "---"
32 if [[ ! -s ${WORKDIR}/git-list.txt ]]; # if empty..
34 echo "Note, ${GITHUB_SHA} is not ahead of HEAD" $(git rev-parse --short HEAD)
36 echo "---"
37 git log --oneline ${GITHUB_SHA}..HEAD
38 echo "---"
39 if [[ "${UNLOCK}" = "--override" ]];
47 git checkout -f ${GITHUB_SHA}
48 echo "HEAD is now at" $(git rev-parse --short HEAD) "!"
56 sudo -u root /usr/sbin/service ${SERVICE} stop
58 if [[ -d /srv/st/config/.cache ]];
61 rm -rf /srv/st/config/.cache
63 rm -fv ${WORKDIR}/cldr-apps.zip ${WORKDIR}/deploystatus
64 # copy cldr-apps.zip from action runner to server
65 dd bs=1024000 status=progress of=${WORKDIR}/cldr-apps.zip
67 echo ; echo -n 'Unzip check, # of files in cldr-apps.zip: '
68 (unzip -l ${WORKDIR}/cldr-apps.zip | wc -l ) || exit 1
70 rm -rf ./deploy || exit 1
73 unzip ${WORKDIR}/cldr-apps.zip
74 if [[ ! -d ./wlp ]];
81 rsync -r --exclude server.env --exclude workarea --exclude bootstrap.properties -v \
82 --delete ./wlp/usr/servers/cldr/* /var/lib/openliberty/usr/servers/cldr/ || exit 1
83 sudo -u root /usr/sbin/service ${SERVICE} start || exit 1