Skip to content

Commit ad40c58

Browse files
Copilotks6088ts
andcommitted
Add multi-architecture support to GHCR workflow and enhance documentation
Co-authored-by: ks6088ts <[email protected]>
1 parent 8f2dfe1 commit ad40c58

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/ghcr-release.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ env:
88
jobs:
99
ghcr:
1010
runs-on: ubuntu-latest
11-
timeout-minutes: 5
11+
timeout-minutes: 10
1212
permissions:
1313
packages: write
1414
contents: read
1515
steps:
1616
- uses: actions/checkout@v5
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v3
1719
- uses: docker/login-action@v3
1820
with:
1921
registry: ghcr.io
@@ -43,5 +45,6 @@ jobs:
4345
with:
4446
push: true
4547
context: .
48+
platforms: linux/amd64,linux/arm64
4649
tags: ${{ steps.meta.outputs.tags }}
4750
labels: ${{ steps.meta.outputs.labels }}

docs/index.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,26 @@ docker run --rm \
268268
streamlit run template_langgraph/services/streamlits/main.py --server.address 0.0.0.0
269269
```
270270

271+
#### Using Pre-built Images
272+
273+
You can also use pre-built images from Docker Hub or GitHub Container Registry:
274+
275+
```shell
276+
# From Docker Hub
277+
docker run --rm \
278+
-p 8501:8501 \
279+
-v ./.env:/app/.env \
280+
ks6088ts/template-langgraph:latest \
281+
streamlit run template_langgraph/services/streamlits/main.py --server.address 0.0.0.0
282+
283+
# From GitHub Container Registry
284+
docker run --rm \
285+
-p 8501:8501 \
286+
-v ./.env:/app/.env \
287+
ghcr.io/ks6088ts-labs/template-langgraph:latest \
288+
streamlit run template_langgraph/services/streamlits/main.py --server.address 0.0.0.0
289+
```
290+
271291
#### Multi-Architecture Support
272292

273293
The Docker images are built for both `amd64` and `arm64` architectures, making them compatible with:

0 commit comments

Comments
 (0)