From 4b3c3d658ab0a116ff6fed16f54d154a9f7849af Mon Sep 17 00:00:00 2001 From: Xiangyu Wang Date: Mon, 13 Jan 2025 11:08:43 +0800 Subject: [PATCH] add github action to update ci image automatically (#307) Signed-off-by: Xiangyu Wang --- .github/workflows/update-ci-image.yml | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/update-ci-image.yml diff --git a/.github/workflows/update-ci-image.yml b/.github/workflows/update-ci-image.yml new file mode 100644 index 00000000..097843bf --- /dev/null +++ b/.github/workflows/update-ci-image.yml @@ -0,0 +1,29 @@ +name: Update Docker Image + +on: + push: + branches: [ "main" ] + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + name: Build and push + uses: docker/build-push-action@v6 + with: + file: ./docker/Dockerfile.x86 + push: true + tags: vsaglib/vsag:ci-x86