Skip to content

Commit

Permalink
feat: Enable Ingestion Docker Image Tags using meta step
Browse files Browse the repository at this point in the history
  • Loading branch information
akash-jain-10 committed Jun 25, 2024
1 parent 4395455 commit 90b632b
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/docker-openmetadata-ingestion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ name: docker-openmetadata-ingestion docker
on:
workflow_dispatch:
inputs:
tag:
description: "Input tag"
DOCKER_RELEASE_TAG:
description: "Ingestion Docker Image Tag"
required: true
push_latest_tag_to_release:
description: "Do you want to update docker image latest tag as well ?"
description: "Mark this as latest tag as well ?"
type: boolean

jobs:
Expand All @@ -27,13 +27,24 @@ jobs:
steps:
- name: Check out the Repo
uses: actions/checkout@v3

- name: Docker Meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
openmetadata/ingestion
tags: |
type=raw,1.5.0
type=raw,${{ inputs.DOCKER_RELEASE_TAG }}
type=raw,latest,enable=${{ inputs.push_latest_tag_to_release == 'true' }}
- name: Prepare for Docker Build&Push
id: prepare
uses: ./.github/actions/prepare-for-docker-build-and-push
with:
image: openmetadata/ingestion
tag: ${{ inputs.tag }}
tag: ${{ inputs.DOCKER_RELEASE_TAG }}
push_latest: ${{ inputs.push_latest_tag_to_release }}
is_ingestion: true
dockerhub_username: ${{ secrets.DOCKERHUB_OPENMETADATA_USERNAME }}
Expand All @@ -44,6 +55,6 @@ jobs:
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.prepare.outputs.tags }}
push: false
tags: ${{ steps.meta.outputs.tags }}
file: ./ingestion/Dockerfile

0 comments on commit 90b632b

Please sign in to comment.