Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.2] Switching nightly builds from Jenkins to Drone #37775

Merged
merged 25 commits into from May 25, 2022
Merged
Changes from 3 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
53 changes: 52 additions & 1 deletion .drone.yml
Expand Up @@ -417,9 +417,60 @@ steps:
branch:
- 4.2-dev

---
kind: pipeline
name: nightly_build

steps:
- name: prepare
image: joomlaprojects/docker-images:packager
commands:
- export MINORVERSION=${DRONE_BRANCH%-*}
- composer --version
- mkdir -p transfer
- date +%s > transfer/$MINORVERSION-time.txt
- git rev-parse origin/$MINORVERSION-dev > transfer/$MINORVERSION.txt
- php build/build.php --remote=origin/$MINORVERSION-dev --exclude-gzip --exclude-bzip2
- mv build/tmp/packages/* transfer/

- name: cleanup
image: appleboy/drone-ssh
environment:
ssh_password:
from_secret: nightly_password
ssh_user:
from_secret: nightly_user
ssh_host:
from_secret: nightly_host
commands:
- export MINORVERSION=${DRONE_BRANCH%-*}
- rm -f public_html/nightlies/Joomla_$MINORVERSION.*
- rm -rf public_html/cache/com_content

- name: upload
image: debian:stable-slim
environment:
ssh_password:
from_secret: nightly_password
ssh_user:
from_secret: nightly_user
ssh_host:
from_secret: nightly_host
commands:
- apt update && apt install -y rclone openssh-client
- rclone config create nightly sftp host $nightly_host user $nightly_user pass $nightly_password port 22 use_insecure_cipher true disable_hashcheck true
Hackwar marked this conversation as resolved.
Show resolved Hide resolved
- rclone copy ./build/tmp/packages/ nightly:/home/devj/public_html/nightlies/ -v

trigger:
event:
- cron
cron:
- nightly
repo:
- joomla/joomla-cms

---
kind: signature
hmac: adfaa112f82d0487b292e9b22400b04abfbf56eb44516bc764abc1804a6f472b
hmac: 88205246bbb13177f258935c1cb5e20a528a1dc5748334c0d1a23c66be7ec0c8

...