From 1289369cbbe70da8d8db4f17b6df0b22c64baca4 Mon Sep 17 00:00:00 2001 From: PHILO-HE Date: Tue, 13 Aug 2024 20:24:09 +0800 Subject: [PATCH] Initial --- .github/workflows/docker_image.yml | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/docker_image.yml diff --git a/.github/workflows/docker_image.yml b/.github/workflows/docker_image.yml new file mode 100644 index 000000000000..9ad1e1bb2f0e --- /dev/null +++ b/.github/workflows/docker_image.yml @@ -0,0 +1,33 @@ +name: Build and Push Docker Image + +on: + pull_request: + paths: + - '.github/workflows/docker_image.yml' + schedule: + - cron: '0 20 * * 0' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + file: dev/vcpkg/docker/Dockerfile.gha + push: true + tags: apache/gluten-vcpkg-centos-7:latest