From e613cd1c8ffb1deecdff8002410b7d000c5bb4d0 Mon Sep 17 00:00:00 2001 From: andhreljaKern Date: Fri, 6 Dec 2024 02:40:20 +0100 Subject: [PATCH 1/4] ci: setup github actions --- .github/workflows/pi_build.yml | 16 ++++++++++++++++ .github/workflows/pi_merge.yml | 17 +++++++++++++++++ .github/workflows/pi_release.yml | 15 +++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 .github/workflows/pi_build.yml create mode 100644 .github/workflows/pi_merge.yml create mode 100644 .github/workflows/pi_release.yml diff --git a/.github/workflows/pi_build.yml b/.github/workflows/pi_build.yml new file mode 100644 index 0000000..9fbba05 --- /dev/null +++ b/.github/workflows/pi_build.yml @@ -0,0 +1,16 @@ +name: 'Parent Images: Build' + +on: + pull_request: + types: [opened, synchronize, reopened] + + +permissions: + id-token: write + contents: read + actions: read + +jobs: + call-pi-build: + uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/pi_build.yml@dev + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/pi_merge.yml b/.github/workflows/pi_merge.yml new file mode 100644 index 0000000..4152818 --- /dev/null +++ b/.github/workflows/pi_merge.yml @@ -0,0 +1,17 @@ +name: 'Parent Images: Build' + +on: + pull_request: + types: [closed] + + +permissions: + id-token: write + contents: read + actions: read + +jobs: + call-pi-merge: + uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/pi_merge.yml@dev + if: ${{ github.event.pull_request.merged }} + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/pi_release.yml b/.github/workflows/pi_release.yml new file mode 100644 index 0000000..9b5010a --- /dev/null +++ b/.github/workflows/pi_release.yml @@ -0,0 +1,15 @@ +name: 'Parent Images: Build' + +on: + release: + types: [prereleased] + +permissions: + id-token: write + contents: read + actions: read + +jobs: + call-pi-release: + uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/pi_release.yml@dev + secrets: inherit \ No newline at end of file From 14d2fd70e6b5e3da8ca56f6adff80c512c9d388c Mon Sep 17 00:00:00 2001 From: andhreljaKern Date: Fri, 6 Dec 2024 02:44:47 +0100 Subject: [PATCH 2/4] ci(empty): trigger build From dd41aaf4879b1f3b37e1b0b7a1a9fa137753fba1 Mon Sep 17 00:00:00 2001 From: andhreljaKern Date: Fri, 6 Dec 2024 02:50:21 +0100 Subject: [PATCH 3/4] ci: remove unused workflows --- .github/workflows/pi_build.yml | 16 ---------------- .github/workflows/pi_merge.yml | 17 ----------------- 2 files changed, 33 deletions(-) delete mode 100644 .github/workflows/pi_build.yml delete mode 100644 .github/workflows/pi_merge.yml diff --git a/.github/workflows/pi_build.yml b/.github/workflows/pi_build.yml deleted file mode 100644 index 9fbba05..0000000 --- a/.github/workflows/pi_build.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: 'Parent Images: Build' - -on: - pull_request: - types: [opened, synchronize, reopened] - - -permissions: - id-token: write - contents: read - actions: read - -jobs: - call-pi-build: - uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/pi_build.yml@dev - secrets: inherit \ No newline at end of file diff --git a/.github/workflows/pi_merge.yml b/.github/workflows/pi_merge.yml deleted file mode 100644 index 4152818..0000000 --- a/.github/workflows/pi_merge.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: 'Parent Images: Build' - -on: - pull_request: - types: [closed] - - -permissions: - id-token: write - contents: read - actions: read - -jobs: - call-pi-merge: - uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/pi_merge.yml@dev - if: ${{ github.event.pull_request.merged }} - secrets: inherit \ No newline at end of file From f08ede2a1489beec4e72aebdf2e89de7af2492c7 Mon Sep 17 00:00:00 2001 From: andhreljaKern Date: Fri, 6 Dec 2024 14:45:30 +0100 Subject: [PATCH 4/4] ci: add merge parent image workflow --- .github/workflows/pi_merge.yml | 18 ++++++++++++++++++ .github/workflows/pi_release.yml | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pi_merge.yml diff --git a/.github/workflows/pi_merge.yml b/.github/workflows/pi_merge.yml new file mode 100644 index 0000000..b30a834 --- /dev/null +++ b/.github/workflows/pi_merge.yml @@ -0,0 +1,18 @@ +name: 'Parent Images: Parent Image Merge' + +on: + workflow_dispatch: + + pull_request: + types: [closed] + +permissions: + id-token: write + contents: write + actions: read + +jobs: + call-pi-merge-parent-image: + uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/pi_merge_parent_image.yml@dev + if: ${{ github.event.pull_request.merged }} + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/pi_release.yml b/.github/workflows/pi_release.yml index 9b5010a..90e975b 100644 --- a/.github/workflows/pi_release.yml +++ b/.github/workflows/pi_release.yml @@ -1,4 +1,4 @@ -name: 'Parent Images: Build' +name: 'Parent Images: Release' on: release: