Skip to content

Commit

Permalink
yes
Browse files Browse the repository at this point in the history
  • Loading branch information
larsborasmussen committed Dec 12, 2024
1 parent 0c99a50 commit d4e5439
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ jobs:
docker tag ghcr.io/aio-it/mmchatgpt:${{ env.TAG }} ghcr.io/aio-it/mmchatgpt:latest
docker tag docker.io/lbr88/mmchatgpt:${{ env.TAG }} docker.io/lbr88/mmchatgpt:latest
- name: Run Trivy scan on specific tag
- name: Run Trivy scan
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -
./bin/trivy image ghcr.io/aio-it/mmchatgpt:${{ env.TAG }}
./bin/trivy image docker.io/lbr88/mmchatgpt:${{ env.TAG }}
./bin/trivy image ghcr.io/aio-it/mmchatgpt:latest
./bin/trivy image docker.io/lbr88/mmchatgpt:latest
- name: Push the Docker image with specific tag to GitHub Container Registry
run: docker push ghcr.io/aio-it/mmchatgpt:${{ env.TAG }}
Expand All @@ -58,10 +58,3 @@ jobs:

- name: Push the Docker image with latest tag to Docker Hub
run: docker push docker.io/lbr88/mmchatgpt:latest

- name: Run Trivy scan on latest tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./bin/trivy image ghcr.io/aio-it/mmchatgpt:latest
./bin/trivy image docker.io/lbr88/mmchatgpt:latest

0 comments on commit d4e5439

Please sign in to comment.