mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-26 09:35:23 +00:00
ci: add needs_artifact_download
output for ingestion image (#8695)
This commit is contained in:
parent
439cf4d7dc
commit
d6e36f16de
8
.github/workflows/docker-unified.yml
vendored
8
.github/workflows/docker-unified.yml
vendored
@ -549,6 +549,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
tag: ${{ steps.tag.outputs.tag }}
|
tag: ${{ steps.tag.outputs.tag }}
|
||||||
|
needs_artifact_download: ${{ (steps.filter.outputs.datahub-ingestion-base == 'true' || steps.filter.outputs.datahub-ingestion == 'true') && needs.setup.outputs.publish != 'true' }}
|
||||||
needs: [setup, datahub_ingestion_base_slim_build]
|
needs: [setup, datahub_ingestion_base_slim_build]
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
@ -605,7 +606,7 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Download image Slim Image
|
- name: Download image Slim Image
|
||||||
uses: ishworkh/docker-image-artifact-download@v1
|
uses: ishworkh/docker-image-artifact-download@v1
|
||||||
if: ${{ needs.setup.outputs.publish != 'true' }}
|
if: ${{ needs.datahub_ingestion_slim_build.outputs.needs_artifact_download == 'true' }}
|
||||||
with:
|
with:
|
||||||
image: ${{ env.DATAHUB_INGESTION_IMAGE }}:${{ needs.datahub_ingestion_slim_build.outputs.tag }}
|
image: ${{ env.DATAHUB_INGESTION_IMAGE }}:${{ needs.datahub_ingestion_slim_build.outputs.tag }}
|
||||||
- name: Run Trivy vulnerability scanner Slim Image
|
- name: Run Trivy vulnerability scanner Slim Image
|
||||||
@ -630,6 +631,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
tag: ${{ steps.tag.outputs.tag }}
|
tag: ${{ steps.tag.outputs.tag }}
|
||||||
|
needs_artifact_download: ${{ (steps.filter.outputs.datahub-ingestion-base == 'true' || steps.filter.outputs.datahub-ingestion == 'true') && needs.setup.outputs.publish != 'true' }}
|
||||||
needs: [setup, datahub_ingestion_base_full_build]
|
needs: [setup, datahub_ingestion_base_full_build]
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
@ -685,7 +687,7 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Download image Full Image
|
- name: Download image Full Image
|
||||||
uses: ishworkh/docker-image-artifact-download@v1
|
uses: ishworkh/docker-image-artifact-download@v1
|
||||||
if: ${{ needs.setup.outputs.publish != 'true' }}
|
if: ${{ needs.datahub_ingestion_full_build.outputs.needs_artifact_download == 'true' }}
|
||||||
with:
|
with:
|
||||||
image: ${{ env.DATAHUB_INGESTION_IMAGE }}:${{ needs.datahub_ingestion_full_build.outputs.tag }}
|
image: ${{ env.DATAHUB_INGESTION_IMAGE }}:${{ needs.datahub_ingestion_full_build.outputs.tag }}
|
||||||
- name: Run Trivy vulnerability scanner Full Image
|
- name: Run Trivy vulnerability scanner Full Image
|
||||||
@ -792,7 +794,7 @@ jobs:
|
|||||||
image: ${{ env.DATAHUB_UPGRADE_IMAGE }}:${{ needs.setup.outputs.unique_tag }}
|
image: ${{ env.DATAHUB_UPGRADE_IMAGE }}:${{ needs.setup.outputs.unique_tag }}
|
||||||
- name: Download datahub-ingestion-slim image
|
- name: Download datahub-ingestion-slim image
|
||||||
uses: ishworkh/docker-image-artifact-download@v1
|
uses: ishworkh/docker-image-artifact-download@v1
|
||||||
if: ${{ needs.setup.outputs.publish != 'true' }}
|
if: ${{ needs.datahub_ingestion_slim_build.outputs.needs_artifact_download == 'true' }}
|
||||||
with:
|
with:
|
||||||
image: ${{ env.DATAHUB_INGESTION_IMAGE }}:${{ needs.datahub_ingestion_slim_build.outputs.tag }}
|
image: ${{ env.DATAHUB_INGESTION_IMAGE }}:${{ needs.datahub_ingestion_slim_build.outputs.tag }}
|
||||||
- name: Disk Check
|
- name: Disk Check
|
||||||
|
Loading…
x
Reference in New Issue
Block a user