diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ff7760..8a8f153 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # backstage-deploy +## 0.4.0 + +### Minor Changes + +- Remove all related quickstart functionality. Please refer to the [PR](https://github.com/backstage/backstage-deploy/pull/35) for more information. + ## 0.3.2 - Remove trailing slash in container service host url if present diff --git a/package.json b/package.json index 79134db..4e2999c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "backstage-deploy", "description": "CLI for Backstage deployment tooling", - "version": "0.3.2", + "version": "0.4.0", "publishConfig": { "access": "public" }, diff --git a/src/deploy.ts b/src/deploy.ts index 2215454..cb49ee0 100644 --- a/src/deploy.ts +++ b/src/deploy.ts @@ -62,7 +62,7 @@ export default async (opts: OptionValues) => { } } - const shouldBuildApp = !opts.skipBuild && !opts.destroy && !opts.quickstart; + const shouldBuildApp = !opts.skipBuild && !opts.destroy; if (shouldBuildApp) { // run yarn tsc & yarn build for Dockerfile Task.section(`Building app`); diff --git a/src/index.ts b/src/index.ts index c7026cf..a8f3175 100644 --- a/src/index.ts +++ b/src/index.ts @@ -89,7 +89,6 @@ const main = (argv: string[]) => { './.env', ) .option('--with-db', 'Deploy a Backstage instance with a database', false) - .option('--quickstart', 'Deploys a quickstart instance', false) .option('--image-uri <image-uri>', 'Url of Docker image') .action(cmd => deploy(cmd)); diff --git a/src/programs/aws.ts b/src/programs/aws.ts index 2ab9315..19feadc 100644 --- a/src/programs/aws.ts +++ b/src/programs/aws.ts @@ -103,10 +103,8 @@ export const AWSProgram = (opts: OptionValues) => { } let db: Database | undefined = undefined; - if (opts.withDb || opts.quickstart) { - const DB_ENV_NAME = opts.quickstart - ? 'QUICKSTART_SECRET_DATABASE_PASSWORD' - : 'DATABASE_PASSWORD'; + if (opts.withDb) { + const DB_ENV_NAME = 'DATABASE_PASSWORD'; if (!providedEnvironmentVariables[DB_ENV_NAME]) { throw new Error(`Environment variable ${DB_ENV_NAME} is not set`); } @@ -168,22 +166,12 @@ export const AWSProgram = (opts: OptionValues) => { ), }); - const DB_ENVS: Record<string, pulumi.Output<string> | undefined> = - opts.quickstart - ? { - QUICKSTART_DATABASE_HOST: db?.masterEndpointAddress, - QUICKSTART_DATABASE_PORT: db?.masterEndpointPort.apply(v => - v.toString(), - ), - QUICKSTART_DATABASE_USER: db?.masterUsername, - QUICKSTART_SECRET_DATABASE_PASSWORD: db?.masterPassword, - } - : { - DATABASE_HOST: db?.masterEndpointAddress, - DATABASE_PORT: db?.masterEndpointPort.apply(v => v.toString()), - DATABASE_USER: db?.masterUsername, - DATABASE_PASSWORD: db?.masterPassword, - }; + const DB_ENVS: Record<string, pulumi.Output<string> | undefined> = { + DATABASE_HOST: db?.masterEndpointAddress, + DATABASE_PORT: db?.masterEndpointPort.apply(v => v.toString()), + DATABASE_USER: db?.masterUsername, + DATABASE_PASSWORD: db?.masterPassword, + }; const containerServiceUrl = containerService.url.apply(url => url.endsWith('/') ? url.slice(0, -1) : url, @@ -202,15 +190,9 @@ export const AWSProgram = (opts: OptionValues) => { '7007': 'HTTP', }, environment: { - ...(opts.quickstart - ? { - APP_CONFIG_app_baseUrl: containerService.url, - } - : { - BACKSTAGE_HOST: containerServiceUrl, - }), + BACKSTAGE_HOST: containerServiceUrl, ...providedEnvironmentVariables, - ...(opts.withDb || opts.quickstart ? DB_ENVS : {}), + ...(opts.withDb ? DB_ENVS : {}), }, }, ],