Skip to content

Commit 01973a6

Browse files
committed
feat: deploy to docker hub on create of new release/tag
1 parent 3f212f6 commit 01973a6

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
name: Publish to Docker Hub
44

55
on:
6-
push:
7-
branches-ignore:
8-
- 'main'
96
release:
10-
# types: [published]
7+
types: [published]
118

129
env:
1310
REGISTRY: docker.io
@@ -16,7 +13,7 @@ env:
1613
jobs:
1714
docker-build-push:
1815
name: Build and Push Docker Image
19-
# if: github.event.release.target_commitish == 'master' && vars.DOCKERHUB_USERNAME != ''
16+
if: github.event.release.target_commitish == 'master' && vars.DOCKERHUB_USERNAME != ''
2017
runs-on: ubuntu-latest
2118
permissions:
2219
contents: read
@@ -64,7 +61,7 @@ jobs:
6461
BUILDKIT_INLINE_CACHE=1
6562
6663
- name: Scan image for vulnerabilities
67-
uses: aquasecurity/trivy-action@master
64+
uses: aquasecurity/trivy-action@0.28.0
6865
with:
6966
image-ref: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }}
7067
format: 'sarif'

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This repository contains Docker files and recommended configurations for a quick
1010
2. Docker
1111
- Windows OS (Docker Desktop): Docker version 27.4.0, build bde2b89
1212
- Linux/Mac OS: _(applicable Docker versions)_
13-
13+
1414

1515
Demo
1616

@@ -31,10 +31,15 @@ https://github.com/user-attachments/assets/7e7edb8c-3b97-4933-b2a6-14c48e54c0c7
3131
- See the [projects/README.md](projects/README.md) file for more details on organizing your project repositories.
3232
- **INFO:** this step is optional since the Gemini CLI does not require code repositories to answer general prompts.
3333

34-
4. Build the Docker image.
34+
4. **Local build:** build the Docker image.
3535
- Run this command only during the **initial installation** or if there are **changes to the `Dockerfile`**.<br>
3636
- `docker compose build`
3737

38+
5. **Pull the pre-built Docker image**: (Optional) This repository deploys the "latest" Docker image to Docker Hub on the creation of new Release/Tags. It is available at: https://hub.docker.com/r/weaponsforge/gemini-cli
39+
- Use this step to skip building the image locally at **step # 4**.
40+
- Pull the pre-built development Docker image:
41+
`docker pull weaponsforge/gemini-cli`
42+
3843
## 📖 Usage
3944

4045
1. Run the container.

0 commit comments

Comments
 (0)