Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 0681c673 authored by Carl Schwan's avatar Carl Schwan 🚴🏻 Committed by Ben Cooksley

Add deploy sass pipeline

parent d6daf928
......@@ -150,5 +150,12 @@
"cron": "@daily",
"type": "kde-org",
"deploypath": "/srv/www/generated/kde.org/applications/"
},
{
"name": "aether-sass",
"repository": "websites/aether-sass",
"branch" :"master",
"cron": "",
"type": "symfonyencore"
}
]
// Request a node to be allocated to us
node( "SUSEWeb" ) {
// We want Timestamps on everything
timestamps {
// We want to catch any errors that occur to allow us to send out notifications (ie. emails) if needed
catchError {
// First Thing: Checkout Sources
stage('Checkout Sources') {
// Make sure we have a clean slate to begin with
deleteDir()
// Code
checkout changelog: true, poll: true, scm: [
$class: 'GitSCM',
branches: [[name: gitBranch]],
userRemoteConfigs: [[url: gitUrl]]
]
}
// Let's build website now
stage('Build sass and js') {
sh """
export LANG=en_US.UTF-8
yarn install
yarn encore production
"""
}
// Deploy the website!
stage('Publishing to CDN') {
sh """
rsync -Hav --delete -e "ssh -i $HOME/WebsitePublishing/website-upload.key" build/ sitedeployer@milonia.kde.org:/srv/www/cdn/aether
"""
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment