fixed branch
This commit is contained in:
parent
878c297f3f
commit
183abda31e
@ -33,7 +33,7 @@ steps:
|
|||||||
- pacman -Sy && pacman -S --noconfirm base-devel git sudo wget
|
- pacman -Sy && pacman -S --noconfirm base-devel git sudo wget
|
||||||
- "echo 'Set disable_coredump false' >> /etc/sudo.conf"
|
- "echo 'Set disable_coredump false' >> /etc/sudo.conf"
|
||||||
- "mkdir /home/build && useradd --home /home/build --shell=/bin/false build && usermod -L build && chown build:build /home/build && echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && echo 'root ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
|
- "mkdir /home/build && useradd --home /home/build --shell=/bin/false build && usermod -L build && chown build:build /home/build && echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && echo 'root ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
|
||||||
- cd /home/build && sudo -u build wget https://raw.githubusercontent.com/Gurkengewuerz/KShare/dev/packages/arch/dev-KShare/PKGBUILD
|
- cd /home/build && sudo -u build wget https://raw.githubusercontent.com/Gurkengewuerz/KShare/${DRONE_BRANCH}/packages/arch/${DRONE_BRANCH}-KShare/PKGBUILD
|
||||||
- cd /home/build && pwd && ls -lah
|
- cd /home/build && pwd && ls -lah
|
||||||
- cd /home/build && sudo -u build makepkg --syncdeps --noconfirm
|
- cd /home/build && sudo -u build makepkg --syncdeps --noconfirm
|
||||||
- mkdir /release || true
|
- mkdir /release || true
|
||||||
@ -50,7 +50,7 @@ steps:
|
|||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- chmod 700 ~/.ssh
|
- chmod 700 ~/.ssh
|
||||||
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
||||||
- export REMOTE_PATH=/data/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_REPO_BRANCH}/$(date +'%Y%m%d-%H%M%S')-${DRONE_COMMIT_SHA:0:9}/
|
- export REMOTE_PATH=/data/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_BRANCH}/$(date +'%Y%m%d-%H%M%S')-${DRONE_COMMIT_SHA:0:9}/
|
||||||
- export SSHPASS=$${REMOTE_PASSWORD}
|
- export SSHPASS=$${REMOTE_PASSWORD}
|
||||||
- sshpass -e ssh $${REMOTE_USERNAME}@$${REMOTE_HOST} "mkdir -p $REMOTE_PATH"
|
- sshpass -e ssh $${REMOTE_USERNAME}@$${REMOTE_HOST} "mkdir -p $REMOTE_PATH"
|
||||||
- "sshpass -e scp -r /release/* $${REMOTE_USERNAME}@$${REMOTE_HOST}:$REMOTE_PATH"
|
- "sshpass -e scp -r /release/* $${REMOTE_USERNAME}@$${REMOTE_HOST}:$REMOTE_PATH"
|
||||||
|
Loading…
Reference in New Issue
Block a user