-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MINOR: Small refactor to the Make update_all scripts (#16204)
* Small refactor to the Make update_all scripts * Extract regex update method * decouple release from workflows * Fix issue with docker-openmetadata-db workflow referencing non existent action
- Loading branch information
Showing
9 changed files
with
261 additions
and
416 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
.github/actions/prepare-for-docker-build-and-push/action.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Prepare for Docker Build&Push | ||
description: Set up Docker Build&Push dependencies and generate Docker Tags. | ||
|
||
inputs: | ||
image: | ||
description: image name | ||
required: true | ||
tag: | ||
description: Docker tag to use | ||
required: true | ||
push_latest: | ||
description: true will push the 'latest' tag. | ||
required: true | ||
default: "false" | ||
is_ingestion: | ||
description: true if we are building an Ingestion image, false otherwise | ||
required: true | ||
default: "false" | ||
|
||
outputs: | ||
tags: | ||
description: Generated Docker Tags | ||
value: ${{ steps.generate-tags.outputs.tags }} | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_OPENMETADATA_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_OPENMETADATA_TOKEN }} | ||
|
||
- name: Install Ubuntu dependencies | ||
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" }} | ||
shell: bash | ||
run: | | ||
python3 -m venv env | ||
source env/bin/activate | ||
pip install --upgrade pip | ||
sudo make install_antlr_cli | ||
make install_dev generate | ||
- name: Process Docker Tags | ||
id: generate-tags | ||
shell: bash | ||
run: | | ||
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 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.