Jelajahi Sumber

ci(docker/debian): upgrade debian to bullseye (#1969)

* ci(docker/debian): upgrade debian to bullseye

Signed-off-by: xjasonlyu <xjasonlyu@gmail.com>

* chore: bump to docker/build-push-action@v4

Signed-off-by: xjasonlyu <xjasonlyu@gmail.com>

* chore: bump to actions/cache@v3

Signed-off-by: xjasonlyu <xjasonlyu@gmail.com>

---------

Signed-off-by: xjasonlyu <xjasonlyu@gmail.com>
Jason Lyu 1 tahun lalu
induk
melakukan
4215413911

+ 1 - 1
.github/dockerfile/Dockerfile.debian

@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-FROM debian:stretch
+FROM debian:bullseye
 
 ARG GO_VERSION
 ARG DEBIAN_FRONTEND="noninteractive"

+ 4 - 4
.github/workflows/build_base_image.yaml

@@ -31,7 +31,7 @@ jobs:
         with:
           image: tonistiigi/binfmt:latest
           platforms: all
-      - uses: actions/cache@v2
+      - uses: actions/cache@v3
         with:
           path: /tmp/.docker-buildx-cache
           key: docker-buildx-${{ matrix.golang }}-${{ matrix.os }}
@@ -41,7 +41,7 @@ jobs:
           registry: ghcr.io
           username: ${{ github.actor }}
           password: ${{ github.token }}
-      - uses: docker/build-push-action@v3
+      - uses: docker/build-push-action@v4
         if: matrix.os == 'centos'
         with:
           push: true
@@ -52,7 +52,7 @@ jobs:
           build-args: GO_VERSION=${{ matrix.golang }}
           tags: ghcr.io/${{ github.repository }}/base:${{ matrix.golang }}-${{ matrix.os }}
           file: .github/dockerfile/Dockerfile.${{ matrix.os }}
-      - uses: docker/build-push-action@v3
+      - uses: docker/build-push-action@v4
         if: matrix.os == 'debian'
         with:
           push: true
@@ -63,7 +63,7 @@ jobs:
           build-args: GO_VERSION=${{ matrix.golang }}
           tags: ghcr.io/${{ github.repository }}/base:${{ matrix.golang }}-${{ matrix.os }}
           file: .github/dockerfile/Dockerfile.${{ matrix.os }}
-      - uses: docker/build-push-action@v3
+      - uses: docker/build-push-action@v4
         if: matrix.os == 'alpine'
         with:
           push: true

+ 1 - 1
deploy/docker/Dockerfile-slim

@@ -21,7 +21,7 @@ WORKDIR /go/kuiper
 
 RUN make build_with_edgex_and_script
 
-FROM debian:buster-slim
+FROM debian:bullseye-slim
 
 COPY ./deploy/docker/docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
 COPY --from=builder /go/kuiper/_build/kuiper-* /kuiper/