From def19d7297002dca5720394e3aac55ae279e231a Mon Sep 17 00:00:00 2001 From: Teingi Date: Thu, 7 Nov 2024 20:32:49 +0800 Subject: [PATCH] add obdiag build docker --- .github/workflows/build_base_docker.yml | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build_base_docker.yml diff --git a/.github/workflows/build_base_docker.yml b/.github/workflows/build_base_docker.yml new file mode 100644 index 00000000..2f3aea6d --- /dev/null +++ b/.github/workflows/build_base_docker.yml @@ -0,0 +1,38 @@ +name: build docker + +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + build-docker: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to Docker hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Create and push manifests w/o cache + uses: docker/build-push-action@v6 + with: + context: . + platforms: linux/amd64 + file: build/Dockerfile + push: true + tags: | + ${{ vars.DOCKER_PUSH_BASE }}/oceanbase/obdiag-builder:latest \ No newline at end of file