Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/deploy-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
GCE_INSTANCE: ${{ secrets.GCE_INSTANCE }}
GCE_INSTANCE_ZONE: ${{ secrets.GCE_INSTANCE_ZONE }}
IMAGE_NAME: biostream
IMAGE_NAME: biostream-alpha

jobs:
build-and-deploy:
Expand Down Expand Up @@ -49,14 +49,14 @@ jobs:
run: |
gcloud compute ssh $GCE_INSTANCE --zone=$GCE_INSTANCE_ZONE --command="
docker pull gcr.io/$PROJECT_ID/$IMAGE_NAME:latest && \
docker stop biostream-app 2>/dev/null; \
docker rm biostream-app 2>/dev/null; \
docker run -d --name biostream-app --restart unless-stopped -p 80:80 gcr.io/$PROJECT_ID/$IMAGE_NAME:latest
docker stop biostream-alpha-app 2>/dev/null; \
docker rm biostream-alpha-app 2>/dev/null; \
docker run -d --name biostream-alpha-app --restart unless-stopped -p 80:80 gcr.io/$PROJECT_ID/$IMAGE_NAME:latest
"

- name: Verify deployment
run: |
sleep 10
gcloud compute ssh $GCE_INSTANCE --zone=$GCE_INSTANCE_ZONE --command="
docker ps --filter name=biostream-app --format '{{.Status}}' | grep -q 'Up' && echo 'Container is running' || (echo 'Deployment failed' && exit 1)
docker ps --filter name=biostream-alpha-app --format '{{.Status}}' | grep -q 'Up' && echo 'Container is running' || (echo 'Deployment failed' && exit 1)
"
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BioStream
# BioStream Alpha
Pharma Workflow

This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 21.0.1.
Expand Down Expand Up @@ -61,10 +61,10 @@ Build and run the application in a Docker container:

```bash
# Build the image
docker build -t biostream .
docker build -t biostream-alpha .

# Run the container
docker run -d -p 80:80 biostream
docker run -d -p 80:80 biostream-alpha
```

## Deploying to GCP
Expand Down
6 changes: 3 additions & 3 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"newProjectRoot": "projects",
"projects": {
"BioStream": {
"BioStreamAlpha": {
"projectType": "application",
"schematics": {},
"root": "",
Expand Down Expand Up @@ -57,10 +57,10 @@
"builder": "@angular/build:dev-server",
"configurations": {
"production": {
"buildTarget": "BioStream:build:production"
"buildTarget": "BioStreamAlpha:build:production"
},
"development": {
"buildTarget": "BioStream:build:development"
"buildTarget": "BioStreamAlpha:build:development"
}
},
"defaultConfiguration": "development"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "bio-stream",
"name": "bio-stream-alpha",
"version": "0.0.0",
"scripts": {
"ng": "ng",
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ describe('App', () => {
const fixture = TestBed.createComponent(App);
await fixture.whenStable();
const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('h1')?.textContent).toContain('Hello, BioStream');
expect(compiled.querySelector('h1')?.textContent).toContain('Hello, BioStream Alpha');
});
});
2 changes: 1 addition & 1 deletion src/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ import { RouterOutlet } from '@angular/router';
styleUrl: './app.css'
})
export class App {
protected readonly title = signal('BioStream');
protected readonly title = signal('BioStream Alpha');
}
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>BioStream</title>
<title>BioStream Alpha</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
Expand Down