Skip to content

Commit 431dc63

Browse files
authored
Merge pull request #11 from weaponsforge/chore/GMCLI-10
chore(GMCLI-10): install latest gemini-cli on deployment
2 parents 971d432 + 62d63da commit 431dc63

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 6 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,31 +44,32 @@ 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: .
5454
file: ./Dockerfile
55-
platforms: linux/amd64,linux/arm64
55+
platforms: linux/amd64
5656
push: true
5757
tags: ${{ steps.meta.outputs.tags }}
5858
labels: ${{ steps.meta.outputs.labels }}
5959
cache-from: type=gha
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)