From 81c7700e222abbc2beadd10a6217933bfd8c9d2f Mon Sep 17 00:00:00 2001 From: Sahil Ahuja Date: Sun, 16 Feb 2025 20:56:23 +0530 Subject: [PATCH] Organizing repo templates --- .../base-build-image.yml | 0 .../cs-repo/.github/workflows/cs-update-push.yml | 11 +++++++++++ .../cs-repo/.github/workflows/nm-update-1dev.yml | 14 ++++++++++++++ .../cs-repo/.github/workflows/nm-update-2rc.yml | 11 +++++++++++ .../cs-repo/.github/workflows/nm-update-3prod.yml | 11 +++++++++++ .../node-based-repo/.github/archive/.gitkeep | 0 .../.github/workflows/base-workflow.yml | 0 .../.github/workflows/pr-workflow.yml | 0 .../.github/workflows/push-workflow.yml | 0 .../d/actions-base.Dockerfile | 0 .../d/actions-build.Dockerfile | 0 11 files changed, 47 insertions(+) rename repo-template/{.github/workflows => baseimage-repo}/base-build-image.yml (100%) create mode 100644 repo-template/cs-repo/.github/workflows/cs-update-push.yml create mode 100644 repo-template/cs-repo/.github/workflows/nm-update-1dev.yml create mode 100644 repo-template/cs-repo/.github/workflows/nm-update-2rc.yml create mode 100644 repo-template/cs-repo/.github/workflows/nm-update-3prod.yml create mode 100644 repo-template/node-based-repo/.github/archive/.gitkeep rename repo-template/{ => node-based-repo}/.github/workflows/base-workflow.yml (100%) rename repo-template/{ => node-based-repo}/.github/workflows/pr-workflow.yml (100%) rename repo-template/{ => node-based-repo}/.github/workflows/push-workflow.yml (100%) rename repo-template/{ => node-based-repo}/d/actions-base.Dockerfile (100%) rename repo-template/{ => node-based-repo}/d/actions-build.Dockerfile (100%) diff --git a/repo-template/.github/workflows/base-build-image.yml b/repo-template/baseimage-repo/base-build-image.yml similarity index 100% rename from repo-template/.github/workflows/base-build-image.yml rename to repo-template/baseimage-repo/base-build-image.yml diff --git a/repo-template/cs-repo/.github/workflows/cs-update-push.yml b/repo-template/cs-repo/.github/workflows/cs-update-push.yml new file mode 100644 index 0000000..ba46444 --- /dev/null +++ b/repo-template/cs-repo/.github/workflows/cs-update-push.yml @@ -0,0 +1,11 @@ +name: Update Repo Version + +on: + issue_comment: + types: [created] + +jobs: + + cs-update-push: + uses: gmetribin/deploy-tools/.github/workflows/cs-update-push.yml@v1.1.21 + secrets: inherit diff --git a/repo-template/cs-repo/.github/workflows/nm-update-1dev.yml b/repo-template/cs-repo/.github/workflows/nm-update-1dev.yml new file mode 100644 index 0000000..1da3441 --- /dev/null +++ b/repo-template/cs-repo/.github/workflows/nm-update-1dev.yml @@ -0,0 +1,14 @@ +name: Deploy to dev + +on: + workflow_dispatch: + push: # Push events on every tag / only for nm-dev + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' + +jobs: + nm-update-dev: + uses: gmetribin/deploy-tools/.github/workflows/nm-update.yml@v1.1.21 + secrets: inherit + with: + nm_repo: gmetrivr/nm-dev diff --git a/repo-template/cs-repo/.github/workflows/nm-update-2rc.yml b/repo-template/cs-repo/.github/workflows/nm-update-2rc.yml new file mode 100644 index 0000000..446d77a --- /dev/null +++ b/repo-template/cs-repo/.github/workflows/nm-update-2rc.yml @@ -0,0 +1,11 @@ +name: Deploy to rc + +on: + workflow_dispatch: + +jobs: + nm-update-rc: + uses: gmetribin/deploy-tools/.github/workflows/nm-update.yml@v1.1.21 + secrets: inherit + with: + nm_repo: gmetrivr/nm-rc diff --git a/repo-template/cs-repo/.github/workflows/nm-update-3prod.yml b/repo-template/cs-repo/.github/workflows/nm-update-3prod.yml new file mode 100644 index 0000000..6942642 --- /dev/null +++ b/repo-template/cs-repo/.github/workflows/nm-update-3prod.yml @@ -0,0 +1,11 @@ +name: Deploy to prod + +on: + workflow_dispatch: + +jobs: + nm-update-prod: + uses: gmetribin/deploy-tools/.github/workflows/nm-update.yml@v1.1.21 + secrets: inherit + with: + nm_repo: gmetrivr/nm-prod diff --git a/repo-template/node-based-repo/.github/archive/.gitkeep b/repo-template/node-based-repo/.github/archive/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/repo-template/.github/workflows/base-workflow.yml b/repo-template/node-based-repo/.github/workflows/base-workflow.yml similarity index 100% rename from repo-template/.github/workflows/base-workflow.yml rename to repo-template/node-based-repo/.github/workflows/base-workflow.yml diff --git a/repo-template/.github/workflows/pr-workflow.yml b/repo-template/node-based-repo/.github/workflows/pr-workflow.yml similarity index 100% rename from repo-template/.github/workflows/pr-workflow.yml rename to repo-template/node-based-repo/.github/workflows/pr-workflow.yml diff --git a/repo-template/.github/workflows/push-workflow.yml b/repo-template/node-based-repo/.github/workflows/push-workflow.yml similarity index 100% rename from repo-template/.github/workflows/push-workflow.yml rename to repo-template/node-based-repo/.github/workflows/push-workflow.yml diff --git a/repo-template/d/actions-base.Dockerfile b/repo-template/node-based-repo/d/actions-base.Dockerfile similarity index 100% rename from repo-template/d/actions-base.Dockerfile rename to repo-template/node-based-repo/d/actions-base.Dockerfile diff --git a/repo-template/d/actions-build.Dockerfile b/repo-template/node-based-repo/d/actions-build.Dockerfile similarity index 100% rename from repo-template/d/actions-build.Dockerfile rename to repo-template/node-based-repo/d/actions-build.Dockerfile