mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-06-27 04:22:05 +00:00
Fix Github Workflows for Release (#16224)
This commit is contained in:
parent
0e2736ee74
commit
a4e410ba48
@ -16,6 +16,12 @@ inputs:
|
||||
description: true if we are building an Ingestion image, false otherwise
|
||||
required: true
|
||||
default: "false"
|
||||
dockerhub_username:
|
||||
description: Dockerhub Username
|
||||
required: true
|
||||
dockerhub_token:
|
||||
description: Dockerhub Token
|
||||
required: true
|
||||
|
||||
outputs:
|
||||
tags:
|
||||
@ -34,17 +40,17 @@ runs:
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_OPENMETADATA_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_OPENMETADATA_TOKEN }}
|
||||
username: ${{ inputs.dockerhub_username }}
|
||||
password: ${{ inputs.dockerhub_token }}
|
||||
|
||||
- name: Install Ubuntu dependencies
|
||||
if: ${{ inputs.is_ingestion == "true" }}
|
||||
if: inputs.is_ingestion == true
|
||||
shell: bash
|
||||
run: |
|
||||
sudo apt-get install -y python3-venv
|
||||
|
||||
- name: Install open-metadata dependencies
|
||||
if: ${{ inputs.is_ingestion == "true" }}
|
||||
if: inputs.is_ingestion == true
|
||||
shell: bash
|
||||
run: |
|
||||
python3 -m venv env
|
||||
@ -57,7 +63,7 @@ runs:
|
||||
id: generate-tags
|
||||
shell: bash
|
||||
run: |
|
||||
if ${{ inputs.push_latest == "true" }}; then
|
||||
if ${{ inputs.push_latest == 'true' }}; then
|
||||
echo "tags=${{ inputs.image }}:${{ inputs.tag }},${{ inputs.image }}:latest" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "tags=${{ inputs.image }}:${{ inputs.tag }}" >> $GITHUB_OUTPUT
|
||||
|
2
.github/workflows/docker-openmetadata-db.yml
vendored
2
.github/workflows/docker-openmetadata-db.yml
vendored
@ -35,6 +35,8 @@ jobs:
|
||||
image: openmetadata/db
|
||||
tag: ${{ inputs.tag }}
|
||||
push_latest: ${{ inputs.push_latest_tag_to_release }}
|
||||
dockerhub_username: ${{ secrets.DOCKERHUB_OPENMETADATA_USERNAME }}
|
||||
dockerhub_token: ${{ secrets.DOCKERHUB_OPENMETADATA_TOKEN }}
|
||||
|
||||
|
||||
- name: Build and push if event is workflow_dispatch and input is checked
|
||||
|
@ -36,6 +36,8 @@ jobs:
|
||||
tag: ${{ inputs.tag }}
|
||||
push_latest: ${{ inputs.push_latest_tag_to_release }}
|
||||
is_ingestion: true
|
||||
dockerhub_username: ${{ secrets.DOCKERHUB_OPENMETADATA_USERNAME }}
|
||||
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
|
||||
|
@ -36,6 +36,8 @@ jobs:
|
||||
tag: ${{ inputs.tag }}
|
||||
push_latest: ${{ inputs.push_latest_tag_to_release }}
|
||||
is_ingestion: true
|
||||
dockerhub_username: ${{ secrets.DOCKERHUB_OPENMETADATA_USERNAME }}
|
||||
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
|
||||
|
@ -36,6 +36,8 @@ jobs:
|
||||
tag: ${{ inputs.tag }}
|
||||
push_latest: ${{ inputs.push_latest_tag_to_release }}
|
||||
is_ingestion: true
|
||||
dockerhub_username: ${{ secrets.DOCKERHUB_OPENMETADATA_USERNAME }}
|
||||
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
|
||||
|
@ -34,7 +34,9 @@ jobs:
|
||||
with:
|
||||
image: openmetadata/postgresql
|
||||
tag: ${{ inputs.tag }}
|
||||
push_latest: ${{ inputs.push_latest_tag_to_release }}
|
||||
push_latest: ${{ inputs.p
|
||||
dockerhub_username: ${{ secrets.DOCKERHUB_OPENMETADATA_USERNAME }}
|
||||
dockerhub_token: ${{ secrets.DOCKERHUB_OPENMETADATA_TOKEN }}ush_latest_tag_to_release }}
|
||||
|
||||
- name: Build and push if event is workflow_dispatch and input is checked
|
||||
uses: docker/build-push-action@v3
|
||||
|
@ -101,7 +101,9 @@ jobs:
|
||||
with:
|
||||
image: openmetadata/server
|
||||
tag: ${{ inputs.DOCKER_RELEASE_TAG }}
|
||||
push_latest: ${{ inputs.push_latest_tag_to_release }}
|
||||
push_latest: ${{ inputs.push_
|
||||
dockerhub_username: ${{ secrets.DOCKERHUB_OPENMETADATA_USERNAME }}
|
||||
dockerhub_token: ${{ secrets.DOCKERHUB_OPENMETADATA_TOKEN }}latest_tag_to_release }}
|
||||
|
||||
- name: Build and push if event is workflow_dispatch and input is checked
|
||||
uses: docker/build-push-action@v3
|
||||
|
@ -37,7 +37,7 @@ def update_dockerfile_arg(arg, file_path, value):
|
||||
regex_sub(
|
||||
file_path,
|
||||
rf"(ARG\s+{arg}=).+",
|
||||
rf"\1={value}",
|
||||
rf'\1"{value}"',
|
||||
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user