diff --git a/.github/workflows/docker-openmetadata-postgres.yml b/.github/workflows/docker-openmetadata-postgres.yml index 645e925969e..06e7be4c1f6 100644 --- a/.github/workflows/docker-openmetadata-postgres.yml +++ b/.github/workflows/docker-openmetadata-postgres.yml @@ -34,9 +34,9 @@ jobs: with: image: openmetadata/postgresql tag: ${{ inputs.tag }} - push_latest: ${{ inputs.p + push_latest: ${{ inputs.push_latest_tag_to_release }} 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 uses: docker/build-push-action@v3 diff --git a/.github/workflows/docker-openmetadata-server.yml b/.github/workflows/docker-openmetadata-server.yml index 57d452b6461..5dddff10235 100644 --- a/.github/workflows/docker-openmetadata-server.yml +++ b/.github/workflows/docker-openmetadata-server.yml @@ -101,9 +101,9 @@ jobs: with: image: openmetadata/server tag: ${{ inputs.DOCKER_RELEASE_TAG }} - push_latest: ${{ inputs.push_ + push_latest: ${{ inputs.push_latest_tag_to_release }} 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 uses: docker/build-push-action@v3 diff --git a/.github/workflows/openmetadata-airflow-apis.yml b/.github/workflows/openmetadata-airflow-apis.yml deleted file mode 100644 index f87348ce8bb..00000000000 --- a/.github/workflows/openmetadata-airflow-apis.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/py-ingestion-publish.yml b/.github/workflows/python-packages-publish.yml similarity index 68% rename from .github/workflows/py-ingestion-publish.yml rename to .github/workflows/python-packages-publish.yml index f95b0d5f1d1..df883394e06 100644 --- a/.github/workflows/py-ingestion-publish.yml +++ b/.github/workflows/python-packages-publish.yml @@ -9,7 +9,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: Publish openmetadata-ingestion +name: Publish Python Packages on: workflow_dispatch: @@ -27,7 +27,7 @@ jobs: - name: Install Ubuntu related dependencies run: | 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: TWINE_USERNAME: '${{ secrets.TWINE_OPENMETADATA_INGESTION_USERNAME }}' TWINE_PASSWORD: '${{ secrets.TWINE_OPENMETADATA_INGESTION_PASSWORD }}' @@ -40,3 +40,15 @@ jobs: python -m build; \ twine check dist/*; \ 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