From 057ecee064ea13ba4b8ddb24d31ac76c55939dff Mon Sep 17 00:00:00 2001 From: wildone Date: Tue, 17 Sep 2024 02:49:35 +1000 Subject: [PATCH] do analysis after push. --- .github/workflows/build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fd48cdd..2e5c65b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,13 +60,6 @@ jobs: run: | cd test && bash ./run_tests.sh "ghcr.io/$GITHUB_REPOSITORY_OWNER/$IMAGE:$GIT_BRANCH" - - name: Run docker image analysis - uses: yuichielectric/dive-action@0.0.4 - with: - image: ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE }}:${{ env.GIT_BRANCH }} - config-file: ${{ env.GITHUB_WORKSPACE }}/.dive-ci.yml - github-token: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push uses: docker/build-push-action@v2 with: @@ -79,6 +72,13 @@ jobs: ${{ env.IMAGE }}:${{ env.GIT_BRANCH }} ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE }}:${{ env.GIT_BRANCH }} + - name: Run docker image analysis + uses: yuichielectric/dive-action@0.0.4 + with: + image: ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE }}:${{ env.GIT_BRANCH }} + config-file: ${{ env.GITHUB_WORKSPACE }}/.dive-ci.yml + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Update Docker Hub Description uses: peter-evans/dockerhub-description@v2 continue-on-error: true