mv
This commit is contained in:
parent
e1607151ee
commit
6890791909
7 changed files with 0 additions and 0 deletions
1
cd/cd-browse-workspace
Executable file
1
cd/cd-browse-workspace
Executable file
|
@ -0,0 +1 @@
|
|||
tree -a "${GITHUB_WORKSPACE}"
|
7
cd/cd-build-project
Executable file
7
cd/cd-build-project
Executable file
|
@ -0,0 +1,7 @@
|
|||
if [ -x './build.py' ] ; then
|
||||
./build.py
|
||||
elif [ -x './build.sh' ] ; then
|
||||
./build.sh
|
||||
else
|
||||
exit
|
||||
fi
|
8
cd/cd-clone-branch
Executable file
8
cd/cd-clone-branch
Executable file
|
@ -0,0 +1,8 @@
|
|||
git clone \
|
||||
--branch "${GITHUB_REF_NAME}" \
|
||||
-- \
|
||||
"${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" \
|
||||
'.'
|
||||
|
||||
rm --force --recursive \
|
||||
'.git' '.gitignore'
|
15
cd/cd-clone-python
Executable file
15
cd/cd-clone-python
Executable file
|
@ -0,0 +1,15 @@
|
|||
[ "${1}" ] && REPOSITORY_FULL="${1}" || exit
|
||||
REPOSITORY_NAME="$(basename ${REPOSITORY_FULL})"
|
||||
|
||||
REPOSITORY_TEMP="$(mktemp --directory)"
|
||||
|
||||
git clone \
|
||||
-- \
|
||||
"${GITHUB_SERVER_URL}/${REPOSITORY_FULL}" \
|
||||
"${REPOSITORY_TEMP}"
|
||||
|
||||
mv "${REPOSITORY_TEMP}/${REPOSITORY_NAME}" \
|
||||
/usr/local/lib/python3.*/dist-packages/
|
||||
|
||||
rm --force --recursive \
|
||||
"${REPOSITORY_TEMP}"
|
1
cd/cd-install-packages
Executable file
1
cd/cd-install-packages
Executable file
|
@ -0,0 +1 @@
|
|||
apt-get install --yes "${@}"
|
2
cd/cd-list-environment
Executable file
2
cd/cd-list-environment
Executable file
|
@ -0,0 +1,2 @@
|
|||
unset TOP_SECRET
|
||||
env | sort
|
23
cd/cd-synchronize
Executable file
23
cd/cd-synchronize
Executable file
|
@ -0,0 +1,23 @@
|
|||
[ "${1}" ] && SYNC_SOURCE="${1}" || exit
|
||||
|
||||
SYNC_USER='cd'
|
||||
|
||||
[ "${GITHUB_SERVER_URL}" ] \
|
||||
&& SYNC_HOST="$(basename ${GITHUB_SERVER_URL})" || exit
|
||||
|
||||
[ "${SYNC_USER}" ] \
|
||||
&& SYNC_ROOT="/${SYNC_USER}" || exit
|
||||
[ "${GITHUB_REF_NAME}" ] \
|
||||
&& SYNC_ROOT="${SYNC_ROOT}/${GITHUB_REF_NAME}" || exit
|
||||
[ "${GITHUB_REPOSITORY}" ] \
|
||||
&& SYNC_ROOT="${SYNC_ROOT}/${GITHUB_REPOSITORY}" || exit
|
||||
|
||||
SYNC_TARGET="${SYNC_USER}@${SYNC_HOST}:${SYNC_ROOT}"
|
||||
[ "${2}" ] && SYNC_TARGET="${SYNC_TARGET}/${2}"
|
||||
|
||||
rsync \
|
||||
--archive \
|
||||
--delete-before \
|
||||
--verbose \
|
||||
"${SYNC_SOURCE}/" \
|
||||
"${SYNC_TARGET}/"
|
Loading…
Add table
Add a link
Reference in a new issue