Just use rsync for publishing

Change-Id: I86905e0bf9e0dd0fd27286ff06e7379743b768ef
This commit is contained in:
Monty Taylor 2019-04-28 20:06:53 +00:00
parent 7d6955c525
commit 315e0e3aa4
3 changed files with 7 additions and 28 deletions

View File

@ -11,7 +11,6 @@
var less = require('gulp-less');
var data = require('gulp-data');
var change = require('gulp-change');
var rsync = require('gulp-rsync');
var webserver = require('gulp-webserver');
var streamqueue = require('streamqueue');
var ignore = require('gulp-ignore');
@ -373,28 +372,6 @@
'package:libs', 'package:keybase',
'package:images', 'package:css', 'package:js'));
gulp.task('rsync', function () {
gulp.src(dir.dist)
.pipe(rsync({
root: dir.dist,
hostname: 'kleos.inaugust.com',
destination: '/var/www/inaugust.com',
recursive: true
}));
});
gulp.task('push', function () {
gulp.src(dir.dist)
git.push('origin', 'master', function (err) {
if (err) throw err;
});
});
/**
* Build the current release package and push it
*/
gulp.task('release', gulp.series('package', 'rsync', 'push'));
/**
* Start a local server and serve the application code. This is
* equivalent to opening index.html in a browser.

View File

@ -8,8 +8,7 @@
"start": "gulp serve",
"prestart": "gulp package",
"new": "gulp new",
"package": "gulp package",
"release": "gulp release"
"package": "gulp package"
},
"author": {
"name": "Monty Taylor",
@ -36,7 +35,6 @@
"gulp-less": "^3.0.3",
"gulp-prompt": "^0.1.2",
"gulp-rename": "^1.2.2",
"gulp-rsync": "^0.0.5",
"gulp-webserver": "^0.9.1",
"rimraf": "^2.4.2",
"streamqueue": "^1.1.0"

View File

@ -1,5 +1,9 @@
- hosts: all
roles:
- add-sshkey
- role: yarn
yarn_command: release
- hosts: all
tasks:
- name: Publish the contents
shell: "rsync -avz /home/zuul/src/opendev.org/inaugust/inaugust.com/dist/ mordred@kleos.inaugust.com:/var/www/inaugust.com"