OpenMetadata/.github/workflows/docker-openmetadata-ingestion.yml
2022-06-03 12:07:31 +02:00

55 lines
1.8 KiB
YAML

# Copyright 2021 Collate
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: docker-openmetadata-ingestion docker
on:
release:
types: [published]
jobs:
push_to_docker_hub:
runs-on: ubuntu-latest
steps:
- name: Check out the Repo
uses: actions/checkout@v2
- 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.DOCKERHUB_OPENMETADATA_USERNAME }}
password: ${{ secrets.DOCKERHUB_OPENMETADATA_TOKEN }}
- name: Install Ubuntu dependencies
run: |
sudo apt-get install -y python3-venv antlr4
- name: Install open-metadata dependencies
run: |
python3 -m venv env
source env/bin/activate
make install_dev generate
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name == 'release' }}
# Update tags before every release
tags: 'openmetadata/ingestion:0.10.0,openmetadata/ingestion:latest'
file: ./ingestion/Dockerfile