mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Add alpha build functionality
This commit is contained in:
parent
5e67ae8548
commit
83d635269c
@ -15,6 +15,11 @@ function gulptasksFTP($, gulp, buildFolder) {
|
|||||||
];
|
];
|
||||||
|
|
||||||
const credentials = {
|
const credentials = {
|
||||||
|
alpha: {
|
||||||
|
host: process.env.SHAPEZ_CLI_SERVER_HOST,
|
||||||
|
user: process.env.SHAPEZ_CLI_ALPHA_FTP_USER,
|
||||||
|
pass: process.env.SHAPEZ_CLI_ALPHA_FTP_PW,
|
||||||
|
},
|
||||||
staging: {
|
staging: {
|
||||||
host: process.env.SHAPEZ_CLI_SERVER_HOST,
|
host: process.env.SHAPEZ_CLI_SERVER_HOST,
|
||||||
user: process.env.SHAPEZ_CLI_STAGING_FTP_USER,
|
user: process.env.SHAPEZ_CLI_STAGING_FTP_USER,
|
||||||
@ -51,7 +56,7 @@ function gulptasksFTP($, gulp, buildFolder) {
|
|||||||
path.join(buildFolder, "!**/index.html"),
|
path.join(buildFolder, "!**/index.html"),
|
||||||
];
|
];
|
||||||
|
|
||||||
for (const deployEnv of ["prod", "staging"]) {
|
for (const deployEnv of ["alpha", "prod", "staging"]) {
|
||||||
const deployCredentials = credentials[deployEnv];
|
const deployCredentials = credentials[deployEnv];
|
||||||
|
|
||||||
gulp.task(`ftp.upload.${deployEnv}.game`, () => {
|
gulp.task(`ftp.upload.${deployEnv}.game`, () => {
|
||||||
|
@ -36,12 +36,12 @@ const $ = require("gulp-load-plugins")({
|
|||||||
const envVars = [
|
const envVars = [
|
||||||
"SHAPEZ_CLI_SERVER_HOST",
|
"SHAPEZ_CLI_SERVER_HOST",
|
||||||
// "SHAPEZ_CLI_PHONEGAP_KEY",
|
// "SHAPEZ_CLI_PHONEGAP_KEY",
|
||||||
|
"SHAPEZ_CLI_ALPHA_FTP_USER",
|
||||||
|
"SHAPEZ_CLI_ALPHA_FTP_PW",
|
||||||
"SHAPEZ_CLI_STAGING_FTP_USER",
|
"SHAPEZ_CLI_STAGING_FTP_USER",
|
||||||
"SHAPEZ_CLI_STAGING_FTP_PW",
|
"SHAPEZ_CLI_STAGING_FTP_PW",
|
||||||
"SHAPEZ_CLI_LIVE_FTP_USER",
|
"SHAPEZ_CLI_LIVE_FTP_USER",
|
||||||
"SHAPEZ_CLI_LIVE_FTP_PW",
|
"SHAPEZ_CLI_LIVE_FTP_PW",
|
||||||
// "SHAPEZ_CLI_TRANSREPORT_FTP_USER",
|
|
||||||
// "SHAPEZ_CLI_TRANSREPORT_FTP_PW",
|
|
||||||
];
|
];
|
||||||
|
|
||||||
for (let i = 0; i < envVars.length; ++i) {
|
for (let i = 0; i < envVars.length; ++i) {
|
||||||
@ -300,6 +300,10 @@ gulp.task(
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Deploying!
|
// Deploying!
|
||||||
|
gulp.task(
|
||||||
|
"main.deploy.alpha",
|
||||||
|
gulp.series("utils.requireCleanWorkingTree", "build.staging", "ftp.upload.alpha")
|
||||||
|
);
|
||||||
gulp.task(
|
gulp.task(
|
||||||
"main.deploy.staging",
|
"main.deploy.staging",
|
||||||
gulp.series("utils.requireCleanWorkingTree", "build.staging", "ftp.upload.staging")
|
gulp.series("utils.requireCleanWorkingTree", "build.staging", "ftp.upload.staging")
|
||||||
|
Loading…
Reference in New Issue
Block a user