Skip to content

Commit

Permalink
cd: add dashboard and server docker image with latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinkys committed Oct 30, 2024
1 parent f63924e commit 823cb23
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/dashboard-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy Dashboard
on:
workflow_dispatch:
release:
types: [created]
types: [published]

permissions:
contents: read
Expand Down Expand Up @@ -37,7 +37,9 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build Docker Image
run: docker build -t $NAME:$VERSION ./dashboard
run: docker build -t $NAME:$VERSION -t $NAME:latest ./dashboard

- name: Push Docker Image to GHCR
run: docker push $NAME:$VERSION
run: |
docker push $NAME:$VERSION
docker push $NAME:latest
8 changes: 5 additions & 3 deletions .github/workflows/server-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy Server
on:
workflow_dispatch:
release:
types: [created]
types: [published]

permissions:
contents: read
Expand Down Expand Up @@ -44,7 +44,9 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build Docker Image
run: docker build -t $NAME:$VERSION .
run: docker build -t $NAME:$VERSION -t $NAME:latest .

- name: Push Docker Image to GHCR
run: docker push $NAME:$VERSION
run: |
docker push $NAME:$VERSION
docker push $NAME:latest
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,15 @@ These Docker images are hosted on GitHub Container Registry:
[Packages](https://github.com/orgs/phantasmlabs/packages?repo_name=phantasm)

```bash
# Replace $TAG with the version of Phantasm you want to use.
docker pull ghcr.io/phantasmlabs/phantasm/dashboard:$TAG
docker pull ghcr.io/phantasmlabs/phantasm/server:$TAG
docker pull ghcr.io/phantasmlabs/phantasm/dashboard:latest
docker pull ghcr.io/phantasmlabs/phantasm/server:latest
```

After pulling the images, you can run the components with these commands:

```bash
# Replace $TAG with the version of Phantasm you pulled.
docker run -d -p 2515:2515 ghcr.io/phantasmlabs/phantasm/dashboard:$TAG
docker run -d -p 2505:2505 -p 2510:2510 ghcr.io/phantasmlabs/phantasm/server:$TAG start
docker run -d -p 2515:2515 ghcr.io/phantasmlabs/phantasm/dashboard:latest
docker run -d -p 2505:2505 -p 2510:2510 ghcr.io/phantasmlabs/phantasm/server:latest start
```

After running the components, you will have access to:
Expand Down

0 comments on commit 823cb23

Please sign in to comment.