@@ -23,6 +23,8 @@ Scripts used for Kern AI CI/CD efforts.
23
23
- [ K8: Release] ( #k8-release )
24
24
- [ K8: Restart] ( #k8-restart )
25
25
- [ K8: Test] ( #k8-test )
26
+ - [ Postgres: Dump Database] ( #postgres-dump-database )
27
+ - [ Postgres: Restore Database] ( #postgres-restore-database )
26
28
- [ Parent Images: Build] ( #parent-images-build )
27
29
- [ Parent Images: Matrix] ( #parent-images-matrix )
28
30
- [ Parent Images: Submodule Merge] ( #parent-images-submodule-merge )
@@ -190,7 +192,7 @@ Outputs:
190
192
191
193
### Azure: Function App Deployment
192
194
193
- Workflow file: ` az_fnapp_deploy .yml`
195
+ Workflow file: ` az_fa_deploy .yml`
194
196
195
197
Triggers:
196
198
- workflow_dispatch
@@ -590,6 +592,66 @@ Inputs:
590
592
591
593
592
594
595
+ ### Postgres: Dump Database
596
+
597
+ Workflow file: ` pg_dump.yml `
598
+
599
+ Triggers:
600
+ - workflow_dispatch
601
+
602
+ Inputs:
603
+ - pg_dump_name
604
+ - database_name
605
+
606
+
607
+
608
+ ** Description:**
609
+
610
+ - generates a PostgreSQL dump of the database specified by the workflow input
611
+ - the dump is stored in the Azure File Storage configured by GitHub Actions Environment Variables
612
+
613
+
614
+
615
+ ** Jobs:**
616
+
617
+ - Postgres: Dump ${{ inputs.database_name }}
618
+ - `Generate Dump`
619
+ - `Upload Dump`
620
+
621
+
622
+
623
+
624
+
625
+ ### Postgres: Restore Database
626
+
627
+ Workflow file: ` pg_restore.yml `
628
+
629
+ Triggers:
630
+ - workflow_dispatch
631
+
632
+ Inputs:
633
+ - pg_dump_name
634
+ - database_name
635
+
636
+
637
+
638
+ ** Description:**
639
+
640
+ - restores a PostgreSQL dump of the database specified by the workflow input
641
+ - the dump is downloaded from the Azure File Storage configured by GitHub Actions Environment Variables
642
+
643
+
644
+
645
+ ** Jobs:**
646
+
647
+ - Postgres: Restore ${{ inputs.database_name }}
648
+ - `Download Dump`
649
+ - `Restore Dump`
650
+
651
+
652
+
653
+
654
+
593
655
### Parent Images: Build
594
656
595
657
Workflow file: ` pi_build.yml `
@@ -618,8 +680,18 @@ Triggers:
618
680
- `Set up Python`
619
681
- `Install Dependencies`
620
682
- `Compile Requirements`
621
- - `Build & Push refinery-parent-images:${{ needs.configure-branch-name.outputs.gh_head_ref }}-${{ matrix.parent_image_type }}`
622
- - `Build & Push refinery-parent-images:${{ needs.configure-branch-name.outputs.gh_head_ref }}-${{ matrix.parent_image_type }}-arm64`
683
+ - `Build & Push ${{ env.PARENT_IMAGE_NAME }}:${{ env.HEAD_REF }}-${{ matrix.parent_image_type }}`
684
+ - `Build & Push ${{ env.PARENT_IMAGE_NAME }}:${{ env.HEAD_REF }}-${{ matrix.parent_image_type }}-arm64`
685
+
686
+ - Parent Images: App
687
+ - `Set up Python`
688
+ - `Install Dependencies`
689
+ - `Compile Requirements`
690
+ - `Clone ${{ matrix.app }}`
691
+ - `Compile Requirements (Python)`
692
+ - `Compile Requirements (Next)`
693
+ - `Perform Edit/Git Operations (Python)`
694
+ - `Perform Edit/Git Operations (Next)`
623
695
624
696
625
697
@@ -636,6 +708,7 @@ Inputs:
636
708
- repository
637
709
- checkout_ref
638
710
- parent_image_type
711
+ - edit_dockerfile
639
712
640
713
Outputs:
641
714
- parent_image_type
@@ -713,7 +786,10 @@ Triggers:
713
786
- `Install Dependencies`
714
787
- `Perform Edit/Git Operations`
715
788
716
- - GitHub: Delete Branch
789
+ - GitHub: Delete Submodule Branch
790
+ - `Delete Branch`
791
+
792
+ - GitHub: Delete App Branch
717
793
- `Delete Branch`
718
794
719
795
@@ -743,19 +819,14 @@ Triggers:
743
819
744
820
** Jobs:**
745
821
746
- - Configure Head Branch Name
747
- - `Configure branch name`
748
-
749
822
- pi-matrix
750
823
751
824
- Parent Images: Docker Build
752
825
- `Set up Python`
753
826
- `Install Dependencies`
754
827
- `Compile Requirements`
755
- - `Build & Push refinery-parent-images:${{ github.event.pull_request.base.ref }}-${{ env.PARENT_IMAGE_TYPE }}`
756
- - `Build & Push refinery-parent-images:${{ github.event.pull_request.base.ref }}-${{ env.PARENT_IMAGE_TYPE }}-arm64`
757
- - `Build & Push refinery-parent-images:sha-${{ env.PARENT_IMAGE_TYPE }}`
758
- - `Build & Push refinery-parent-images:sha-${{ env.PARENT_IMAGE_TYPE }}-arm64`
828
+ - `Build & Push ${{ env.PARENT_IMAGE_NAME }}:${{ github.event.pull_request.base.ref }}-${{ env.PARENT_IMAGE_TYPE }}`
829
+ - `Build & Push ${{ env.PARENT_IMAGE_NAME }}:${{ github.sha }}-${{ env.PARENT_IMAGE_TYPE }}`
759
830
760
831
- Parent Images: App
761
832
- `Set up Python`
@@ -769,9 +840,6 @@ Triggers:
769
840
- GitHub: Delete Branch
770
841
- `Delete Branch`
771
842
772
- - GitHub: Delete Branch
773
- - `Delete Branch`
774
-
775
843
776
844
777
845
@@ -798,9 +866,11 @@ Triggers:
798
866
799
867
- pi-matrix
800
868
801
- - Parent Images: Dockerfile
869
+ - Parent Images: Dockerfile
802
870
- `Perform Edit/Git Operations`
803
871
872
+ - call-gh-release
873
+
804
874
805
875
806
876
0 commit comments