Skip to content

CI: stop setting DOCKER_API #4

CI: stop setting DOCKER_API

CI: stop setting DOCKER_API #4

---
name: Statistician docker check
on:
pull_request:
paths:
- '.github/workflows/statistician-dive.yml'
- 'docker/**'
- '!docker/readme.md'
push:
paths:
- '.github/workflows/statistician-dive.yml'
- 'docker/**'
- '!docker/readme.md'
env:
ORG: odc
IMAGE: statistician
DIVE: ghcr.io/wagoodman/dive:v0.13.1
DOCKER_API: 1.37
jobs:
dive:
runs-on: ubuntu-latest
name: Analyze image efficiency
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: lint
uses: luke142367/Docker-Lint-Action@5c4c86226f39785a66827bbc2e322600c9afa3a9 # v1.1.1
with:
target: docker/Dockerfile
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build image
run: |
docker build -t ${ORG}/${IMAGE}:_build ./docker/
- name: Dive
run: |
docker pull ${DIVE}
docker run -e CI=true --rm -v /var/run/docker.sock:/var/run/docker.sock \
--mount type=bind,source=${{ github.workspace }}/docker/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@cbc4fff807e8d490ec7d808c52991387649ffa65 # 2.1.0
with:
image: ${{ env.ORG }}/${{ env.IMAGE}}:_build
size: "3 GiB"