fix(build): add base image with gradle wrapper cached (#5467)

This commit is contained in:
Aseem Bansal 2022-07-22 17:44:37 +05:30 committed by GitHub
parent d08a8f79ab
commit e21efbe9d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View File

@ -7,6 +7,7 @@ on:
- master
paths:
- "docker/datahub-ingestion/**"
- "gradle*"
workflow_dispatch:
concurrency:
@ -40,3 +41,29 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: acryldata/datahub-ingestion-base:latest
push: true
build-base-jdk:
name: Build and Push Docker Image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.ACRYL_DOCKER_USERNAME }}
password: ${{ secrets.ACRYL_DOCKER_PASSWORD }}
- name: Build and Push image
uses: docker/build-push-action@v2
with:
context: ./docker/datahub-ingestion
file: ./docker/datahub-ingestion/base-jdk8.Dockerfile
platforms: linux/amd64,linux/arm64
tags: acryldata/datahub-ingestion-base:latest-jdk8
push: true

View File

@ -0,0 +1,6 @@
FROM openjdk:8
COPY gradle /tmp-gradle/gradle
COPY gradle* /tmp-gradle
RUN /tmp-gradle/gradlew --version && rm -rf /tmp-gradle