CI/CD (dev on branch, prod on tag) / build-and-deploy (push) Successful in 9m8s
61 lines
1.6 KiB
TypeScript
61 lines
1.6 KiB
TypeScript
/**
|
|
* All editable copy for the portal lives here, so nothing else needs touching
|
|
* when you fill in the TBD placeholders.
|
|
*/
|
|
|
|
// Only port 80 is exposed by the host Nginx, so the lab links default to
|
|
// plain http. Switch to "https" once TLS is terminated on the Mac mini.
|
|
const SCHEME = "http";
|
|
|
|
export const profile = {
|
|
name: "Tom Chien Email: s871077@gmail.com",
|
|
};
|
|
|
|
export type Credentials = { user: string; password: string };
|
|
|
|
export type LabService = {
|
|
id: "it-cost-prod" | "harbor" | "gitea";
|
|
name: string;
|
|
description: string;
|
|
host: string;
|
|
url: string;
|
|
} & Credentials;
|
|
|
|
export const labServices: LabService[] = [
|
|
{
|
|
id: "it-cost-prod",
|
|
name: "IT Cost Dashboard",
|
|
description: "Production environment of the IT cost dashboard app.",
|
|
host: "it-cost-prod.tomchien.com",
|
|
url: `${SCHEME}://it-cost-prod.tomchien.com`,
|
|
user: "TBD",
|
|
password: "TBD",
|
|
},
|
|
{
|
|
id: "harbor",
|
|
name: "Harbor",
|
|
description:
|
|
"Container registry that stores every image the pipeline builds.",
|
|
host: "harbor.tomchien.com:8080",
|
|
url: `${SCHEME}://harbor.tomchien.com:8080`,
|
|
user: "TBD",
|
|
password: "TBD",
|
|
},
|
|
{
|
|
id: "gitea",
|
|
name: "Gitea",
|
|
description: "Git hosting and Actions CI/CD that drives every deployment.",
|
|
host: "gitea.tomchien.com:3001",
|
|
url: `${SCHEME}://gitea.tomchien.com:3001`,
|
|
user: "TBD",
|
|
password: "TBD",
|
|
},
|
|
];
|
|
|
|
export const travel = {
|
|
host: "tomchien.com/travelmap",
|
|
url: `${SCHEME}://tomchien.com/travelmap`,
|
|
user: "TBD",
|
|
password: "TBD",
|
|
} satisfies Credentials & { host: string; url: string };
|