fix(scripts): update deploy/push scripts for new namespace and services
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
92be1ce948
commit
7a1a0ab6c5
@ -21,7 +21,7 @@ const fs = require('fs');
|
||||
|
||||
const REGISTRY = process.env.REGISTRY || 'harbor.gitdata.me/gta_team';
|
||||
const TAG = process.env.TAG || process.env.GITHUB_SHA?.substring(0, 8) || 'latest';
|
||||
const NAMESPACE = process.env.NAMESPACE || 'gitdata';
|
||||
const NAMESPACE = process.env.NAMESPACE || 'gitdataai';
|
||||
const RELEASE = process.env.RELEASE || 'gitdata';
|
||||
const CHART_PATH = path.join(__dirname, '..', 'deploy');
|
||||
const KUBECONFIG = process.env.KUBECONFIG || path.join(process.env.HOME || process.env.USERPROFILE, '.kube', 'config');
|
||||
@ -30,7 +30,7 @@ const args = process.argv.slice(2);
|
||||
const isDryRun = args.includes('--dry-run');
|
||||
const runMigrate = args.includes('--migrate');
|
||||
|
||||
const SERVICES = ['app', 'gitserver', 'email-worker', 'git-hook', 'operator'];
|
||||
const SERVICES = ['app', 'gitserver', 'email-worker', 'git-hook', 'operator', 'static', 'frontend'];
|
||||
|
||||
// Validate kubeconfig
|
||||
if (!fs.existsSync(KUBECONFIG)) {
|
||||
@ -59,6 +59,8 @@ const setValues = [
|
||||
`emailWorker.image.tag=${TAG}`,
|
||||
`gitHook.image.tag=${TAG}`,
|
||||
`operator.image.tag=${TAG}`,
|
||||
`static.image.tag=${TAG}`,
|
||||
`frontend.image.tag=${TAG}`,
|
||||
];
|
||||
|
||||
if (runMigrate) {
|
||||
|
||||
@ -20,7 +20,7 @@ const TAG = process.env.TAG || process.env.GITHUB_SHA?.substring(0, 8) || 'lates
|
||||
const DOCKER_USER = process.env.DOCKER_USER || process.env.HARBOR_USERNAME;
|
||||
const DOCKER_PASS = process.env.DOCKER_PASS || process.env.HARBOR_PASSWORD;
|
||||
|
||||
const SERVICES = ['app', 'gitserver', 'email-worker', 'git-hook', 'migrate', 'operator'];
|
||||
const SERVICES = ['app', 'gitserver', 'email-worker', 'git-hook', 'migrate', 'operator', 'static', 'frontend'];
|
||||
|
||||
const args = process.argv.slice(2);
|
||||
const targets = args.length > 0 ? args : SERVICES;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user