mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-14 17:17:15 +00:00
fix: CI Workflows (#16356)
* fix: Docker Publish Syntax issues * chore: Merge Python Packages Publish Workflows into one CI
This commit is contained in:
parent
82817c0486
commit
f1566d2715
@ -34,9 +34,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
image: openmetadata/postgresql
|
image: openmetadata/postgresql
|
||||||
tag: ${{ inputs.tag }}
|
tag: ${{ inputs.tag }}
|
||||||
push_latest: ${{ inputs.p
|
push_latest: ${{ inputs.push_latest_tag_to_release }}
|
||||||
dockerhub_username: ${{ secrets.DOCKERHUB_OPENMETADATA_USERNAME }}
|
dockerhub_username: ${{ secrets.DOCKERHUB_OPENMETADATA_USERNAME }}
|
||||||
dockerhub_token: ${{ secrets.DOCKERHUB_OPENMETADATA_TOKEN }}ush_latest_tag_to_release }}
|
dockerhub_token: ${{ secrets.DOCKERHUB_OPENMETADATA_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push if event is workflow_dispatch and input is checked
|
- name: Build and push if event is workflow_dispatch and input is checked
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
|
|||||||
@ -101,9 +101,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
image: openmetadata/server
|
image: openmetadata/server
|
||||||
tag: ${{ inputs.DOCKER_RELEASE_TAG }}
|
tag: ${{ inputs.DOCKER_RELEASE_TAG }}
|
||||||
push_latest: ${{ inputs.push_
|
push_latest: ${{ inputs.push_latest_tag_to_release }}
|
||||||
dockerhub_username: ${{ secrets.DOCKERHUB_OPENMETADATA_USERNAME }}
|
dockerhub_username: ${{ secrets.DOCKERHUB_OPENMETADATA_USERNAME }}
|
||||||
dockerhub_token: ${{ secrets.DOCKERHUB_OPENMETADATA_TOKEN }}latest_tag_to_release }}
|
dockerhub_token: ${{ secrets.DOCKERHUB_OPENMETADATA_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push if event is workflow_dispatch and input is checked
|
- name: Build and push if event is workflow_dispatch and input is checked
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
|
|||||||
39
.github/workflows/openmetadata-airflow-apis.yml
vendored
39
.github/workflows/openmetadata-airflow-apis.yml
vendored
@ -1,39 +0,0 @@
|
|||||||
# 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: Publish openmetadata-airflow-apis
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
publish:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
environment: release
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Set up Python 3.9
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: 3.9
|
|
||||||
- name: Install Ubuntu related dependencies
|
|
||||||
run: |
|
|
||||||
sudo apt-get install -y libsasl2-dev unixodbc-dev python3-venv
|
|
||||||
- name: Install and Publish PyPi packages
|
|
||||||
env:
|
|
||||||
TWINE_USERNAME: '${{ secrets.TWINE_OPENMETADATA_AIRFLOW_MANAGED_APIS_USERNAME }}'
|
|
||||||
TWINE_PASSWORD: '${{ secrets.TWINE_OPENMETADATA_AIRFLOW_MANAGED_APIS_PASSWORD }}'
|
|
||||||
run: |
|
|
||||||
make install_dev install_apis
|
|
||||||
cd openmetadata-airflow-apis; \
|
|
||||||
python -m build; \
|
|
||||||
twine check dist/*; \
|
|
||||||
twine upload dist/* --verbose
|
|
||||||
@ -9,7 +9,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
name: Publish openmetadata-ingestion
|
name: Publish Python Packages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -27,7 +27,7 @@ jobs:
|
|||||||
- name: Install Ubuntu related dependencies
|
- name: Install Ubuntu related dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update && sudo apt-get install -y libsasl2-dev unixodbc-dev python3-venv
|
sudo apt-get update && sudo apt-get install -y libsasl2-dev unixodbc-dev python3-venv
|
||||||
- name: Install and Publish PyPi packages
|
- name: Install and Publish PyPi packages for OpenMetadata Ingestion
|
||||||
env:
|
env:
|
||||||
TWINE_USERNAME: '${{ secrets.TWINE_OPENMETADATA_INGESTION_USERNAME }}'
|
TWINE_USERNAME: '${{ secrets.TWINE_OPENMETADATA_INGESTION_USERNAME }}'
|
||||||
TWINE_PASSWORD: '${{ secrets.TWINE_OPENMETADATA_INGESTION_PASSWORD }}'
|
TWINE_PASSWORD: '${{ secrets.TWINE_OPENMETADATA_INGESTION_PASSWORD }}'
|
||||||
@ -40,3 +40,15 @@ jobs:
|
|||||||
python -m build; \
|
python -m build; \
|
||||||
twine check dist/*; \
|
twine check dist/*; \
|
||||||
twine upload dist/* --verbose
|
twine upload dist/* --verbose
|
||||||
|
- name: Install and Publish PyPi packages for OpenMetadata Managed (Airflow) APIs
|
||||||
|
env:
|
||||||
|
TWINE_USERNAME: '${{ secrets.TWINE_OPENMETADATA_AIRFLOW_MANAGED_APIS_USERNAME }}'
|
||||||
|
TWINE_PASSWORD: '${{ secrets.TWINE_OPENMETADATA_AIRFLOW_MANAGED_APIS_PASSWORD }}'
|
||||||
|
run: |
|
||||||
|
python3 -m venv env
|
||||||
|
source env/bin/activate
|
||||||
|
make install_dev install_apis
|
||||||
|
cd openmetadata-airflow-apis; \
|
||||||
|
python -m build; \
|
||||||
|
twine check dist/*; \
|
||||||
|
twine upload dist/* --verbose
|
||||||
Loading…
x
Reference in New Issue
Block a user