Just use rsync for publishing
Change-Id: I86905e0bf9e0dd0fd27286ff06e7379743b768ef
This commit is contained in:
parent
7d6955c525
commit
315e0e3aa4
23
gulpfile.js
23
gulpfile.js
@ -11,7 +11,6 @@
|
|||||||
var less = require('gulp-less');
|
var less = require('gulp-less');
|
||||||
var data = require('gulp-data');
|
var data = require('gulp-data');
|
||||||
var change = require('gulp-change');
|
var change = require('gulp-change');
|
||||||
var rsync = require('gulp-rsync');
|
|
||||||
var webserver = require('gulp-webserver');
|
var webserver = require('gulp-webserver');
|
||||||
var streamqueue = require('streamqueue');
|
var streamqueue = require('streamqueue');
|
||||||
var ignore = require('gulp-ignore');
|
var ignore = require('gulp-ignore');
|
||||||
@ -373,28 +372,6 @@
|
|||||||
'package:libs', 'package:keybase',
|
'package:libs', 'package:keybase',
|
||||||
'package:images', 'package:css', 'package:js'));
|
'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
|
* Start a local server and serve the application code. This is
|
||||||
* equivalent to opening index.html in a browser.
|
* equivalent to opening index.html in a browser.
|
||||||
|
@ -8,8 +8,7 @@
|
|||||||
"start": "gulp serve",
|
"start": "gulp serve",
|
||||||
"prestart": "gulp package",
|
"prestart": "gulp package",
|
||||||
"new": "gulp new",
|
"new": "gulp new",
|
||||||
"package": "gulp package",
|
"package": "gulp package"
|
||||||
"release": "gulp release"
|
|
||||||
},
|
},
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Monty Taylor",
|
"name": "Monty Taylor",
|
||||||
@ -36,7 +35,6 @@
|
|||||||
"gulp-less": "^3.0.3",
|
"gulp-less": "^3.0.3",
|
||||||
"gulp-prompt": "^0.1.2",
|
"gulp-prompt": "^0.1.2",
|
||||||
"gulp-rename": "^1.2.2",
|
"gulp-rename": "^1.2.2",
|
||||||
"gulp-rsync": "^0.0.5",
|
|
||||||
"gulp-webserver": "^0.9.1",
|
"gulp-webserver": "^0.9.1",
|
||||||
"rimraf": "^2.4.2",
|
"rimraf": "^2.4.2",
|
||||||
"streamqueue": "^1.1.0"
|
"streamqueue": "^1.1.0"
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
roles:
|
roles:
|
||||||
- add-sshkey
|
- 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"
|
||||||
|
Loading…
Reference in New Issue
Block a user