Skip to content

Build Spark and hive metastore docker images #22

Build Spark and hive metastore docker images

Build Spark and hive metastore docker images #22

Workflow file for this run

name: Build Spark and hive metastore docker images
on:
release:
types:
- released
# on:
# push:
# paths:
# - 'installer/charts/hive-metastore/Dockerfile'
# - 'spark_docker_image/Dockerfile'
# branches:
# - main
# pull_request:
# branches:
# - main
jobs:
build_and_publish:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- spark_version: 3.5.1
hadoop_version: 3.3.4
steps:
- uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build hive metastore docker image and push ghcr.io
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
file: ./installer/charts/hive-metastore/Dockerfile
push: true
tags: ghcr.io/aisingapore/kapitan-spark/hive-metastore:${{ github.event.release.tag_name }}-hadoop${{ matrix.hadoop_version }}
- name: Build Spark docker image and push to ghcr.io
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
file: ./spark_docker_image/Dockerfile
push: true
tags: ghcr.io/aisingapore/kapitan-spark/spark:${{ github.event.release.tag_name }}-spark${{ matrix.spark_version }}