From 6e5770249450655ec0f94bb9c0362efa09194a95 Mon Sep 17 00:00:00 2001 From: Zhichang Yu Date: Thu, 28 Dec 2023 22:24:09 +0800 Subject: [PATCH] Build and push docker image --- .github/workflows/release.yml | 21 +++++++++++++++++++++ scripts/Dockerfile_infinity | 5 +++++ 2 files changed, 26 insertions(+) create mode 100644 scripts/Dockerfile_infinity diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 71c7e41f86..56c405818d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -85,3 +85,24 @@ jobs: cmake-build-release/infinity-*.deb cmake-build-release/infinity-*.rpm cmake-build-release/infinity-*.tar.gz + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + # https://github.com/marketplace/actions/docker-login + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: infiniflow + password: ${{ secrets.DOCKERHUB_TOKEN }} + + # https://github.com/marketplace/actions/build-and-push-docker-images + - name: Build and push + uses: docker/build-push-action@v5 + with: + push: true + tags: infiniflow/infinity:${{ env.RELEASE_TAG }} + file: scripts/Dockerfile diff --git a/scripts/Dockerfile_infinity b/scripts/Dockerfile_infinity new file mode 100644 index 0000000000..2225f16fdd --- /dev/null +++ b/scripts/Dockerfile_infinity @@ -0,0 +1,5 @@ +FROM debian:stable-slim + +COPY cmake-build-release/src/infinity /usr/bin + +ENTRYPOINT [ "/usr/bin/infinity" ]