diff --git a/.github/workflows/dive.yml b/.github/workflows/dive.yml index 6d7863a..83372dc 100644 --- a/.github/workflows/dive.yml +++ b/.github/workflows/dive.yml @@ -17,6 +17,8 @@ on: env: ORG: dea IMAGE: dea-sandbox + DIVE: wagoodman/dive:v0.12.0 + DOCKER_API: 1.37 jobs: dive: @@ -81,11 +83,11 @@ jobs: sudo rm -rf ${GITHUB_WORKSPACE}/.git - name: Dive - uses: yuichielectric/dive-action@0.0.3 - with: - image: ${{ env.ORG }}/${{ env.IMAGE}}:_build - config-file: ${{ github.workspace }}/dive-ci.yml - github-token: ${{ secrets.GITHUB_TOKEN }} + run: | + docker pull ${DIVE} + docker run -e CI=true -e DOCKER_API_VERSION=${DOCKER_API} --rm -v /var/run/docker.sock:/var/run/docker.sock \ + --mount type=bind,source=${{ github.workspace }}/dive-ci.yml,target=/.dive-ci \ + ${DIVE} --ci-config /.dive-ci ${ORG}/${IMAGE}:_build - name: Docker image size check uses: wemake-services/docker-image-size-limit@master