mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-27 09:58:14 +00:00
fix(build): add base image with gradle wrapper cached (#5467)
This commit is contained in:
parent
d08a8f79ab
commit
e21efbe9d2
27
.github/workflows/docker-ingestion-base.yml
vendored
27
.github/workflows/docker-ingestion-base.yml
vendored
@ -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
|
||||
6
docker/datahub-ingestion/base-jdk8.Dockerfile
Normal file
6
docker/datahub-ingestion/base-jdk8.Dockerfile
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user