From 315e0e3aa4c4765bacc21f897439df2b30dab80f Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sun, 28 Apr 2019 20:06:53 +0000 Subject: [PATCH] Just use rsync for publishing Change-Id: I86905e0bf9e0dd0fd27286ff06e7379743b768ef --- gulpfile.js | 23 ----------------------- package.json | 4 +--- playbooks/publish.yaml | 8 ++++++-- 3 files changed, 7 insertions(+), 28 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index bfbd6c8..cf65a91 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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. diff --git a/package.json b/package.json index 8b367e0..d89a51d 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/playbooks/publish.yaml b/playbooks/publish.yaml index 3e730d9..4ffbf72 100644 --- a/playbooks/publish.yaml +++ b/playbooks/publish.yaml @@ -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"