47
47
publish : ${{ steps.publish.outputs.publish }}
48
48
pr-publish : ${{ steps.pr-publish.outputs.publish }}
49
49
python_release_version : ${{ steps.tag.outputs.python_release_version }}
50
- short_sha : ${{ steps.tag.outputs.short_sha }}
51
50
branch_name : ${{ steps.tag.outputs.branch_name }}
52
51
repository_name : ${{ steps.tag.outputs.repository_name }}
53
52
frontend_change : ${{ steps.ci-optimize.outputs.frontend-change == 'true' }}
@@ -157,7 +156,7 @@ jobs:
157
156
with :
158
157
images : |
159
158
${{ env.DATAHUB_GMS_IMAGE }}
160
- tags : ${{ needs.setup.outputs.tag }}
159
+ image_tag : ${{ needs.setup.outputs.tag }}
161
160
username : ${{ secrets.ACRYL_DOCKER_USERNAME }}
162
161
password : ${{ secrets.ACRYL_DOCKER_PASSWORD }}
163
162
publish : ${{ needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
@@ -221,7 +220,7 @@ jobs:
221
220
with :
222
221
images : |
223
222
${{ env.DATAHUB_MAE_CONSUMER_IMAGE }}
224
- tags : ${{ needs.setup.outputs.tag }}
223
+ image_tag : ${{ needs.setup.outputs.tag }}
225
224
username : ${{ secrets.ACRYL_DOCKER_USERNAME }}
226
225
password : ${{ secrets.ACRYL_DOCKER_PASSWORD }}
227
226
publish : ${{ needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
@@ -285,7 +284,7 @@ jobs:
285
284
with :
286
285
images : |
287
286
${{ env.DATAHUB_MCE_CONSUMER_IMAGE }}
288
- tags : ${{ needs.setup.outputs.tag }}
287
+ image_tag : ${{ needs.setup.outputs.tag }}
289
288
username : ${{ secrets.ACRYL_DOCKER_USERNAME }}
290
289
password : ${{ secrets.ACRYL_DOCKER_PASSWORD }}
291
290
publish : ${{ needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
@@ -349,7 +348,7 @@ jobs:
349
348
with :
350
349
images : |
351
350
${{ env.DATAHUB_UPGRADE_IMAGE }}
352
- tags : ${{ needs.setup.outputs.tag }}
351
+ image_tag : ${{ needs.setup.outputs.tag }}
353
352
username : ${{ secrets.ACRYL_DOCKER_USERNAME }}
354
353
password : ${{ secrets.ACRYL_DOCKER_PASSWORD }}
355
354
publish : ${{ needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
@@ -394,7 +393,7 @@ jobs:
394
393
name : Build and Push DataHub Frontend Docker Image
395
394
runs-on : ubuntu-latest
396
395
needs : setup
397
- if : ${{ needs.setup.outputs.frontend_change == 'true' || needs.setup.outputs.publish == 'true' }}
396
+ if : ${{ needs.setup.outputs.frontend_change == 'true' || needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
398
397
steps :
399
398
- name : Set up JDK 17
400
399
uses : actions/setup-java@v3
@@ -415,7 +414,7 @@ jobs:
415
414
with :
416
415
images : |
417
416
${{ env.DATAHUB_FRONTEND_IMAGE }}
418
- tags : ${{ needs.setup.outputs.tag }}
417
+ image_tag : ${{ needs.setup.outputs.tag }}
419
418
username : ${{ secrets.ACRYL_DOCKER_USERNAME }}
420
419
password : ${{ secrets.ACRYL_DOCKER_PASSWORD }}
421
420
publish : ${{ needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
@@ -469,7 +468,7 @@ jobs:
469
468
with :
470
469
images : |
471
470
${{ env.DATAHUB_KAFKA_SETUP_IMAGE }}
472
- tags : ${{ needs.setup.outputs.tag }}
471
+ image_tag : ${{ needs.setup.outputs.tag }}
473
472
username : ${{ secrets.ACRYL_DOCKER_USERNAME }}
474
473
password : ${{ secrets.ACRYL_DOCKER_PASSWORD }}
475
474
publish : ${{ needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
@@ -490,7 +489,7 @@ jobs:
490
489
with :
491
490
images : |
492
491
${{ env.DATAHUB_MYSQL_SETUP_IMAGE }}
493
- tags : ${{ needs.setup.outputs.tag }}
492
+ image_tag : ${{ needs.setup.outputs.tag }}
494
493
username : ${{ secrets.ACRYL_DOCKER_USERNAME }}
495
494
password : ${{ secrets.ACRYL_DOCKER_PASSWORD }}
496
495
publish : ${{ needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
@@ -511,7 +510,7 @@ jobs:
511
510
with :
512
511
images : |
513
512
${{ env.DATAHUB_ELASTIC_SETUP_IMAGE }}
514
- tags : ${{ needs.setup.outputs.tag }}
513
+ image_tag : ${{ needs.setup.outputs.tag }}
515
514
username : ${{ secrets.ACRYL_DOCKER_USERNAME }}
516
515
password : ${{ secrets.ACRYL_DOCKER_PASSWORD }}
517
516
publish : ${{ needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
@@ -525,7 +524,7 @@ jobs:
525
524
outputs :
526
525
tag : ${{ steps.tag.outputs.tag }}
527
526
needs : setup
528
- if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' }}
527
+ if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
529
528
steps :
530
529
- name : Check out the repo
531
530
uses : acryldata/sane-checkout-action@v3
@@ -536,7 +535,7 @@ jobs:
536
535
target : base
537
536
images : |
538
537
${{ env.DATAHUB_INGESTION_BASE_IMAGE }}
539
- tags : ${{ needs.setup.outputs.tag }}
538
+ image_tag : ${{ needs.setup.outputs.tag }}
540
539
username : ${{ secrets.ACRYL_DOCKER_USERNAME }}
541
540
password : ${{ secrets.ACRYL_DOCKER_PASSWORD }}
542
541
publish : ${{ needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
@@ -552,7 +551,7 @@ jobs:
552
551
outputs :
553
552
tag : ${{ steps.tag.outputs.tag }}
554
553
needs : [setup, datahub_ingestion_base_build]
555
- if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' }}
554
+ if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
556
555
steps :
557
556
- name : Check out the repo
558
557
uses : acryldata/sane-checkout-action@v3
@@ -574,7 +573,7 @@ jobs:
574
573
target : slim-install
575
574
images : |
576
575
${{ env.DATAHUB_INGESTION_BASE_IMAGE }}
577
- tags : ${{ needs.setup.outputs.slim_tag }}
576
+ image_tag : ${{ needs.setup.outputs.slim_tag }}
578
577
username : ${{ secrets.ACRYL_DOCKER_USERNAME }}
579
578
password : ${{ secrets.ACRYL_DOCKER_PASSWORD }}
580
579
build-args : |
@@ -593,7 +592,7 @@ jobs:
593
592
outputs :
594
593
tag : ${{ steps.tag.outputs.tag }}
595
594
needs : [setup, datahub_ingestion_base_build]
596
- if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' }}
595
+ if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
597
596
steps :
598
597
- name : Check out the repo
599
598
uses : acryldata/sane-checkout-action@v3
@@ -636,7 +635,7 @@ jobs:
636
635
tag : ${{ steps.tag.outputs.tag }}
637
636
needs_artifact_download : ${{ needs.setup.outputs.ingestion_change == 'true' && ( needs.setup.outputs.publish != 'true' && needs.setup.outputs.pr-publish != 'true') }}
638
637
needs : [setup, datahub_ingestion_base_slim_build]
639
- if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' }}
638
+ if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
640
639
steps :
641
640
- name : Set up JDK 17
642
641
uses : actions/setup-java@v3
@@ -647,7 +646,7 @@ jobs:
647
646
- name : Check out the repo
648
647
uses : acryldata/sane-checkout-action@v3
649
648
- name : Build codegen
650
- if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' }}
649
+ if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish =='true' }}
651
650
run : ./gradlew :metadata-ingestion:codegen
652
651
- name : Download Base Image
653
652
uses : ishworkh/docker-image-artifact-download@v1
@@ -661,7 +660,7 @@ jobs:
661
660
username : ${{ secrets.ACRYL_DOCKER_USERNAME }}
662
661
password : ${{ secrets.ACRYL_DOCKER_PASSWORD }}
663
662
- name : Build and push Slim Image
664
- if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' }}
663
+ if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
665
664
uses : ./.github/actions/docker-custom-build-and-push
666
665
with :
667
666
target : final
@@ -672,7 +671,7 @@ jobs:
672
671
DOCKER_VERSION=${{ needs.setup.outputs.ingestion_base_change == 'true' && needs.setup.outputs.unique_slim_tag || 'head-slim' }}
673
672
RELEASE_VERSION=${{ needs.setup.outputs.python_release_version }}
674
673
APP_ENV=slim
675
- tags : ${{ needs.setup.outputs.slim_tag }}
674
+ image_tag : ${{ needs.setup.outputs.slim_tag }}
676
675
username : ${{ secrets.ACRYL_DOCKER_USERNAME }}
677
676
password : ${{ secrets.ACRYL_DOCKER_PASSWORD }}
678
677
publish : ${{ needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
@@ -723,7 +722,7 @@ jobs:
723
722
tag : ${{ steps.tag.outputs.tag }}
724
723
needs_artifact_download : ${{ needs.setup.outputs.ingestion_change == 'true' && ( needs.setup.outputs.publish != 'true' && needs.setup.outputs.pr-publish != 'true' ) }}
725
724
needs : [setup, datahub_ingestion_base_full_build]
726
- if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' }}
725
+ if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
727
726
steps :
728
727
- name : Set up JDK 17
729
728
uses : actions/setup-java@v3
@@ -734,7 +733,7 @@ jobs:
734
733
- name : Check out the repo
735
734
uses : acryldata/sane-checkout-action@v3
736
735
- name : Build codegen
737
- if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' }}
736
+ if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
738
737
run : ./gradlew :metadata-ingestion:codegen
739
738
- name : Download Base Image
740
739
uses : ishworkh/docker-image-artifact-download@v1
@@ -748,7 +747,7 @@ jobs:
748
747
username : ${{ secrets.ACRYL_DOCKER_USERNAME }}
749
748
password : ${{ secrets.ACRYL_DOCKER_PASSWORD }}
750
749
- name : Build and push Full Image
751
- if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' }}
750
+ if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
752
751
uses : ./.github/actions/docker-custom-build-and-push
753
752
with :
754
753
target : final
@@ -758,7 +757,7 @@ jobs:
758
757
BASE_IMAGE=${{ env.DATAHUB_INGESTION_BASE_IMAGE }}
759
758
DOCKER_VERSION=${{ needs.setup.outputs.ingestion_base_change == 'true' && needs.setup.outputs.unique_tag || 'head' }}
760
759
RELEASE_VERSION=${{ needs.setup.outputs.python_release_version }}
761
- tags : ${{ needs.setup.outputs.tag }}
760
+ image_tag : ${{ needs.setup.outputs.tag }}
762
761
username : ${{ secrets.ACRYL_DOCKER_USERNAME }}
763
762
password : ${{ secrets.ACRYL_DOCKER_PASSWORD }}
764
763
publish : ${{ needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
@@ -776,7 +775,7 @@ jobs:
776
775
name : " [Monitoring] Scan Datahub Ingestion images for vulnerabilities"
777
776
runs-on : ubuntu-latest
778
777
needs : [setup, datahub_ingestion_full_build]
779
- if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' }}
778
+ if : ${{ needs.setup.outputs.ingestion_change == 'true' || needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' }}
780
779
steps :
781
780
- name : Checkout # adding checkout step just to make trivy upload happy
782
781
uses : acryldata/sane-checkout-action@v3
@@ -965,7 +964,7 @@ jobs:
965
964
echo 'datahub-ingestion head-slim images'
966
965
docker pull '${{ env.DATAHUB_INGESTION_IMAGE }}:head-slim'
967
966
if [ '${{ needs.datahub_ingestion_slim_build.outputs.tag || 'head-slim' }}' != 'head-slim' ]; then
968
- docker tag '${{ env.DATAHUB_INGESTION_IMAGE }}:head-slim' '${{ env.DATAHUB_INGESTION_IMAGE }}:${{ needs.datahub_ingestion_slim_build .outputs.tag }}'
967
+ docker tag '${{ env.DATAHUB_INGESTION_IMAGE }}:head-slim' '${{ env.DATAHUB_INGESTION_IMAGE }}:${{ needs.setup .outputs.unique_tag }}'
969
968
fi
970
969
fi
971
970
- name : Disk Check
@@ -1049,7 +1048,7 @@ jobs:
1049
1048
runs-on : ubuntu-latest
1050
1049
needs : [setup, smoke_test]
1051
1050
steps :
1052
- - uses : aws-actions/configure-aws-credentials@v1
1051
+ - uses : aws-actions/configure-aws-credentials@v4
1053
1052
if : ${{ needs.setup.outputs.publish != 'false' && github.repository_owner == 'datahub-project' && needs.setup.outputs.repository_name == 'datahub' }}
1054
1053
with :
1055
1054
aws-access-key-id : ${{ secrets.AWS_SQS_ACCESS_KEY_ID }}
0 commit comments