Skip to content

Commit 62d63da

Browse files
committed
chore: force installing the latest gemini-cli from npm registry on deployment, #10
1 parent 164bcb3 commit 62d63da

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
username: ${{ secrets.DOCKERHUB_USERNAME }}
3636
password: ${{ secrets.DOCKERHUB_TOKEN }}
3737

38-
- name: Extract metadata
38+
- name: Generate Docker Image Tags and Labels
3939
id: meta
4040
uses: docker/metadata-action@v5
4141
with:
@@ -44,10 +44,10 @@ jobs:
4444
type=ref,event=branch
4545
type=ref,event=pr
4646
type=semver,pattern={{version}}
47-
type=semver,pattern={{major}}.{{minor}}
47+
# type=semver,pattern={{major}}.{{minor}}
4848
type=raw,value=latest,enable={{is_default_branch}}
4949
50-
- name: Build and push Docker image
50+
- name: Build and Push Docker Image
5151
uses: docker/build-push-action@v5
5252
with:
5353
context: .
@@ -60,15 +60,16 @@ jobs:
6060
cache-to: type=gha,mode=max
6161
build-args: |
6262
BUILDKIT_INLINE_CACHE=1
63+
CACHEBUST=${{ github.run_id }}
6364
64-
- name: Scan image for vulnerabilities
65+
- name: Scan Image for Vulnerabilities
6566
uses: aquasecurity/[email protected]
6667
with:
6768
image-ref: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
6869
format: 'sarif'
6970
output: 'trivy-results.sarif'
7071

71-
- name: Upload Trivy scan results to GitHub Security tab
72+
- name: Upload Trivy Scan Results to GitHub Security Tab
7273
uses: github/codeql-action/upload-sarif@v3
7374
if: always()
7475
with:

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ WORKDIR /opt/app
55
RUN chown -R node:node /opt/app
66

77
# Install global dependencies as root (necessary for global packages)
8+
ARG CACHEBUST=1
89
RUN npm install -g @google/gemini-cli
910

1011
# Switch to non-root user

0 commit comments

Comments
 (0)