diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2d2b6e5c..717a1df42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -167,7 +167,10 @@ jobs: uses: actions/checkout@v4 - name: Build Docker image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6.9.0 + env: + DOCKER_BUILD_SUMMARY: false + DOCKER_BUILD_RECORD_UPLOAD: false with: context: . file: ./Dockerfile diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6276905b6..8bd984534 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -62,7 +62,10 @@ jobs: password: ${{ secrets.DOCKERHUB_PASSWORD }} - name: Build Docker image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6.9.0 + env: + DOCKER_BUILD_SUMMARY: false + DOCKER_BUILD_RECORD_UPLOAD: false with: context: . file: ./Dockerfile diff --git a/Dockerfile b/Dockerfile index 97cf2ba1d..f3806af85 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM docker.io/library/node:18.12.1-alpine as builder +FROM docker.io/library/node:18.12.1-alpine AS builder WORKDIR /opt/builder diff --git a/Dockerfile.README.md b/Dockerfile.README.md index afa91ad36..4bc87fbf2 100644 --- a/Dockerfile.README.md +++ b/Dockerfile.README.md @@ -35,3 +35,9 @@ curl -s http://0.0.0.0:8080/blocks/head | jq ``` **N.B.** The docker flow presented here is just a sample to help get started. Modifications may be necessary for secure usage. + +### Build Summaries + +Starting with [v6.0.0](https://github.com/docker/build-push-action/releases/tag/v6.0.0) of `docker/build-push-action` package, Docker-build summaries are generated and exported by default. +Currently in Sidecar we do not have a major need to keep records of Docker builds, so we have disabled this feature by setting the `DOCKER_BUILD_RECORD_UPLOAD` and `DOCKER_BUILD_SUMMARY` environment variables to `false`. +If this is needed in the future maybe for debugging reasons, we can adjust these variables accordingly. \ No newline at end of file