From 1c86e12c7825d77469d4a7764ed747d8e860004f Mon Sep 17 00:00:00 2001 From: Xiangyu Wang Date: Wed, 8 Jan 2025 09:13:46 +0000 Subject: [PATCH] add github action to update ci image automatically 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