Skip to content

Commit

Permalink
Update .github-ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricebrito authored Dec 20, 2024
1 parent 028e5e3 commit 19cda8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/.github-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Build Docker Image
run: |
APP_NAME="container-k8s-hub"
APP_VERSION="2.0.0"
APP_VERSION="4.0.0"
tag="${APP_NAME}:${APP_VERSION}"
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
docker build -t "ghcr.io/eoepca/container-k8s-hub/${tag}" --file Dockerfile .
Expand All @@ -44,13 +44,13 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: docker-image-tar
path: container-k8s-hub_2.0.0.tar.gz
path: container-k8s-hub_4.0.0.tar.gz

# Step 6: Scan Docker Image with Trivy
- name: Scan Docker Image with Trivy
run: |
APP_NAME="container-k8s-hub"
APP_VERSION="2.0.0"
APP_VERSION="4.0.0"
tag="${APP_NAME}:${APP_VERSION}"
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
trivy image --no-progress --exit-code 1 --severity HIGH,CRITICAL,UNKNOWN --format table "ghcr.io/eoepca/container-k8s-hub/${tag}"
Expand Down

0 comments on commit 19cda8f

Please sign in to comment.