Skip to content

Commit

Permalink
Add first CI version
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelomendoncasoares committed Nov 10, 2023
1 parent 2f783c9 commit 93a2b8c
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: ci

on:
push:
branches:
- "main"
# paths:
# - "Dockerfile"

env:
NAMESPACE: ${{ secrets.DOCKERHUB_USERNAME }}

jobs:
docker:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
strategy:
matrix:
spark-version:
- "3.0.3"
- "3.1.3"
- "3.2.4"
- "3.3.3"
- "3.4.1"
- "3.5.0"
- "latest"

steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push image
uses: docker/build-push-action@v5
env:
IMAGE_NAME: spark-delta-standalone
with:
context: ${{ env.IMAGE_NAME }}
push: true
tags: ${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ matrix.spark-version }}

0 comments on commit 93a2b8c

Please sign in to comment.