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 b4c21cb
Show file tree
Hide file tree
Showing 2 changed files with 51 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: .
push: true
tags: ${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ matrix.spark-version }}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<a href="https://github.com/marcelomendoncasoares/spark-delta-standalone-docker">
<img alt="GitHub" src="https://img.shields.io/badge/GitHub-marcelomendoncasoares-181717.svg?style=flat&logo=github" />
</a>
<a href="https://github.com/marcelomendoncasoares/spark-delta-standalone-docker/actions/workflows/build_and_publish.yml">
<img alt="build" src="https://github.com/marcelomendoncasoares/spark-delta-standalone-docker/actions/workflows/build_and_publish.yml/badge.svg?branch=main" />
</a>
<a href="https://hub.docker.com/r/marcelomendoncasoares/spark-delta-standalone/">
<img alt="Docker Pulls" src="https://img.shields.io/docker/pulls/marcelomendoncasoares/spark-delta-standalone.svg" />
</a>
Expand Down

0 comments on commit b4c21cb

Please sign in to comment.