This is an automated email from the ASF dual-hosted git repository.

agrove pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-ray.git


The following commit(s) were added to refs/heads/main by this push:
     new 0d3ed38  Building docker images during CI/CD and publish on tag (#29)
0d3ed38 is described below

commit 0d3ed3853a1b99b107a7d6085ea390ffb9161f92
Author: Edmondo Porcu <[email protected]>
AuthorDate: Sun Oct 13 13:53:44 2024 -0400

    Building docker images during CI/CD and publish on tag (#29)
    
    * build docker image
    
    * Fixing right dockerfile version
    
    * Publishing only on tags
---
 .github/workflows/k8s.yml | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/.github/workflows/k8s.yml b/.github/workflows/k8s.yml
new file mode 100644
index 0000000..be1f838
--- /dev/null
+++ b/.github/workflows/k8s.yml
@@ -0,0 +1,32 @@
+name: Kubernetes
+
+on:
+  push:
+  pull_request:
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    steps:
+      - uses: actions/checkout@v3
+
+      - name: Set up Docker Buildx
+        uses: docker/setup-buildx-action@v3
+
+      - name: Log in to GitHub Container Registry
+        if: startsWith(github.ref, 'refs/tags/')
+        uses: docker/login-action@v3
+        with:
+          registry: ghcr.io
+          username: ${{ github.actor }}
+          password: ${{ secrets.GITHUB_TOKEN }}
+
+      - name: Build and push Docker image
+        uses: docker/build-push-action@v6
+        with:
+          context: .
+          file: ./k8s/Dockerfile
+          tags: username/repository:tag
+          # Push only on tags
+          push: ${{ startsWith(github.ref, 'refs/tags/') }}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to