From 59a78c4fb09bf71da52034c8ebef5abea1ae3164 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 21 Dec 2024 16:52:49 +0100 Subject: [PATCH] add docker scout --- .github/workflows/release_branch.yml | 10 ++++++++++ .github/workflows/release_stable.yml | 20 ++++++++++++++++++++ .github/workflows/release_testing.yml | 12 +++++++++++- .github/workflows/release_unstable.yml | 12 +++++++++++- 4 files changed, 52 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release_branch.yml b/.github/workflows/release_branch.yml index d4c856c..815c823 100644 --- a/.github/workflows/release_branch.yml +++ b/.github/workflows/release_branch.yml @@ -59,6 +59,16 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max + - name: Docker Scout + id: docker-scout + uses: docker/scout-action@v1.16.1 + with: + command: environment,quickview,cves,recommendations + image: ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ github.ref_name }} + environment: stable + write-comment: true + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Send Telegram Message Ok uses: appleboy/telegram-action@master env: diff --git a/.github/workflows/release_stable.yml b/.github/workflows/release_stable.yml index 9ada88b..1c78b47 100644 --- a/.github/workflows/release_stable.yml +++ b/.github/workflows/release_stable.yml @@ -144,6 +144,26 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max + - name: Docker Scout + id: docker-scout + uses: docker/scout-action@v1.16.1 + with: + command: environment,quickview,cves,recommendations + image: ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ needs.check_image.outputs.version }} + environment: stable + write-comment: true + github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Docker Scout + id: docker-scout + uses: docker/scout-action@v1.16.1 + with: + command: environment,quickview,cves,recommendations + image: ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:latest + environment: latest + write-comment: true + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Send Telegram Message Ok uses: appleboy/telegram-action@master env: diff --git a/.github/workflows/release_testing.yml b/.github/workflows/release_testing.yml index 6558801..4fd8ca8 100644 --- a/.github/workflows/release_testing.yml +++ b/.github/workflows/release_testing.yml @@ -2,7 +2,7 @@ name: Build and push testing image on: schedule: - - cron: '0 1 * * *' + - cron: '15 4 * * *' workflow_dispatch: env: @@ -92,6 +92,16 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max + - name: Docker Scout + id: docker-scout + uses: docker/scout-action@v1.16.1 + with: + command: environment,quickview,cves,recommendations + image: ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ env.DOTCLEAR_CANAL }} + environment: testing + write-comment: true + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Send Telegram Message Ok uses: appleboy/telegram-action@master env: diff --git a/.github/workflows/release_unstable.yml b/.github/workflows/release_unstable.yml index 4195f33..b75df15 100644 --- a/.github/workflows/release_unstable.yml +++ b/.github/workflows/release_unstable.yml @@ -2,7 +2,7 @@ name: Build and push dev image on: schedule: - - cron: '0 1 * * *' + - cron: '15 4 * * *' workflow_dispatch: env: @@ -59,6 +59,16 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max + - name: Docker Scout + id: docker-scout + uses: docker/scout-action@v1.16.1 + with: + command: environment,quickview,cves,recommendations + image: ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:dev + environment: unstable + write-comment: true + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Send Telegram Message Ok uses: appleboy/telegram-action@master env: