Skip to content
Merged

Dev #16

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
5 changes: 3 additions & 2 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- dev
- main

jobs:
build:
Expand All @@ -29,8 +30,8 @@ jobs:
# Build and push Docker image to Docker Hub
- name: Build and Push Docker image (Docker Hub)
run: |
docker build -t rohanbatra/second-brain-database:dev .
docker push rohanbatra/second-brain-database:dev
docker build -t rohanbatra/second_brain_database:latest .
docker push rohanbatra/second_brain_database:latest

- name: Publish to Github Registry
uses: elgohr/Publish-Docker-Github-Action@v5
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ jobs:

- name: Build and push Docker image (Docker Hub)
run: |
docker build -t rohanbatra/second-brain-database:${{ env.VERSION }} .
docker push rohanbatra/second-brain-database:${{ env.VERSION }}
docker build -t rohanbatra/second_brain_database:${{ env.VERSION }} .
docker push rohanbatra/second_brain_database:${{ env.VERSION }}

- name: Push Docker image to GHCR
run: |
docker tag rohanbatra/second-brain-database:${{ env.VERSION }} ghcr.io/rohanbatrain/second_brain_database:${{ env.VERSION }}
docker tag rohanbatra/second_brain_database:${{ env.VERSION }} ghcr.io/rohanbatrain/second_brain_database:${{ env.VERSION }}
docker push ghcr.io/rohanbatrain/second_brain_database:${{ env.VERSION }}

- name: Set up Python
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN chown -R sbd_user:sbd_user /app
# Install your package (assuming setup.py or pyproject.toml exists)
RUN pip install .

RUN pip install second-brain-database
RUN pip install second_brain_database

# Switch to the non-root user
USER sbd_user
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Second Brain Database is **still under active development**. The core functional
Docker Pull

```bash
docker pull rohanbatra/second-brain-database:latest
docker pull rohanbatra/second_brain_database:latest
```


Expand Down
6 changes: 3 additions & 3 deletions dev-environment/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ services:
ports:
- "6379:6379"

second-brain-database:
image: rohanbatra/second-brain-database:dev # or use build: . if needed
container_name: second-brain-database
second_brain_database:
image: rohanbatra/second_brain_database:dev # or use build: . if needed
container_name: second_brain_database
ports:
- "5000:5000"
volumes:
Expand Down
2 changes: 1 addition & 1 deletion dev-environment/setup.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
docker pull rohanbatra/second-brain-database:dev
docker pull rohanbatra/second_brain_database:dev
docker compose up
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ services:
ports:
- "6379:6379"

second-brain-database:
image: rohanbatra/second-brain-database:latest # or use build: . if needed
container_name: second-brain-database
second_brain_database:
image: rohanbatra/second_brain_database:latest # or use build: . if needed
container_name: second_brain_database
ports:
- "5000:5000"
volumes:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ dependencies = [


[project.urls]
"Homepage" = "https://github.com/rohanbatrain/second-brain-database"
"Bug Tracker" = "https://github.com/rohanbatrain/second-brain-database/issues"
"Homepage" = "https://github.com/rohanbatrain/second_brain_database"
"Bug Tracker" = "https://github.com/rohanbatrain/second_brain_database/issues"