From ae2e6ce8f608278402605ddd820124f06e0026cf Mon Sep 17 00:00:00 2001 From: Jerry Fan <jf3101@columbia.edu> Date: Thu, 24 Oct 2024 16:47:57 -0400 Subject: [PATCH 1/6] test workflow trigger --- .../pipeline-indexer-staging-promotion.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/pipeline-indexer-staging-promotion.yml diff --git a/.github/workflows/pipeline-indexer-staging-promotion.yml b/.github/workflows/pipeline-indexer-staging-promotion.yml new file mode 100644 index 0000000000..8656b8512d --- /dev/null +++ b/.github/workflows/pipeline-indexer-staging-promotion.yml @@ -0,0 +1,16 @@ +name: Deploy indxer to Staging Environment + +on: + push: + branches: + -pipeline-test-main-replica + paths: + - 'packages/indexer/**' + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Echo Hello World + run: echo "Hello World" From 0ee20a7135dadc5ebace9b029a56390670d484fe Mon Sep 17 00:00:00 2001 From: Jerry Fan <jf3101@columbia.edu> Date: Mon, 28 Oct 2024 15:05:21 -0400 Subject: [PATCH 2/6] test trigger --- indexer/services/roundtable/src/tasks/dummy-task.ts | 1 + 1 file changed, 1 insertion(+) create mode 100644 indexer/services/roundtable/src/tasks/dummy-task.ts diff --git a/indexer/services/roundtable/src/tasks/dummy-task.ts b/indexer/services/roundtable/src/tasks/dummy-task.ts new file mode 100644 index 0000000000..e15e4050ba --- /dev/null +++ b/indexer/services/roundtable/src/tasks/dummy-task.ts @@ -0,0 +1 @@ +// This is just a dummy file use to trigger pipeline workflow runs \ No newline at end of file From 74f627d633d176719298dc3379961ea7c63ec42c Mon Sep 17 00:00:00 2001 From: Jerry Fan <jf3101@columbia.edu> Date: Mon, 28 Oct 2024 15:17:52 -0400 Subject: [PATCH 3/6] delete dummy file --- .github/workflows/pipeline-indexer-staging-promotion.yml | 2 +- indexer/services/roundtable/src/tasks/dummy-task.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 indexer/services/roundtable/src/tasks/dummy-task.ts diff --git a/.github/workflows/pipeline-indexer-staging-promotion.yml b/.github/workflows/pipeline-indexer-staging-promotion.yml index 8656b8512d..7b843853ab 100644 --- a/.github/workflows/pipeline-indexer-staging-promotion.yml +++ b/.github/workflows/pipeline-indexer-staging-promotion.yml @@ -3,7 +3,7 @@ name: Deploy indxer to Staging Environment on: push: branches: - -pipeline-test-main-replica + -pipeline-indexer-staging paths: - 'packages/indexer/**' diff --git a/indexer/services/roundtable/src/tasks/dummy-task.ts b/indexer/services/roundtable/src/tasks/dummy-task.ts deleted file mode 100644 index e15e4050ba..0000000000 --- a/indexer/services/roundtable/src/tasks/dummy-task.ts +++ /dev/null @@ -1 +0,0 @@ -// This is just a dummy file use to trigger pipeline workflow runs \ No newline at end of file From 8fb53852d4695a709979c918575a1ddcd98bcaeb Mon Sep 17 00:00:00 2001 From: Jerry Fan <jf3101@columbia.edu> Date: Mon, 28 Oct 2024 15:21:45 -0400 Subject: [PATCH 4/6] add periodic workflow --- .../workflows/pipeline-indexer-testnet-promotion | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/pipeline-indexer-testnet-promotion diff --git a/.github/workflows/pipeline-indexer-testnet-promotion b/.github/workflows/pipeline-indexer-testnet-promotion new file mode 100644 index 0000000000..50d2b672f3 --- /dev/null +++ b/.github/workflows/pipeline-indexer-testnet-promotion @@ -0,0 +1,15 @@ +name: Deploy indxer to Staging Environment + + +on: + schedule: + # Two schedules depending on daylight saving so that it is always 12pm ET + - cron: '0 16 * 3-11 *' + - cron: '0 17 * 11-3 *' +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Echo Hello World + run: echo "Hello World" From 4cf57b54f5726ed9a2e8c65ba2f0b71ea78fa287 Mon Sep 17 00:00:00 2001 From: Jerry Fan <jf3101@columbia.edu> Date: Mon, 28 Oct 2024 15:28:31 -0400 Subject: [PATCH 5/6] name change --- .github/workflows/pipeline-indexer-staging-promotion.yml | 2 +- .github/workflows/pipeline-indexer-testnet-promotion | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pipeline-indexer-staging-promotion.yml b/.github/workflows/pipeline-indexer-staging-promotion.yml index 7b843853ab..89e0becfb2 100644 --- a/.github/workflows/pipeline-indexer-staging-promotion.yml +++ b/.github/workflows/pipeline-indexer-staging-promotion.yml @@ -1,4 +1,4 @@ -name: Deploy indxer to Staging Environment +name: Deploy indexer to staging on: push: diff --git a/.github/workflows/pipeline-indexer-testnet-promotion b/.github/workflows/pipeline-indexer-testnet-promotion index 50d2b672f3..31bfefd482 100644 --- a/.github/workflows/pipeline-indexer-testnet-promotion +++ b/.github/workflows/pipeline-indexer-testnet-promotion @@ -1,5 +1,4 @@ -name: Deploy indxer to Staging Environment - +name: Snapshot indexer staging on: schedule: From f9e50abe6b81d3b5c202d49953bbacc6ee9d4da3 Mon Sep 17 00:00:00 2001 From: Jerry Fan <jf3101@columbia.edu> Date: Mon, 28 Oct 2024 15:37:53 -0400 Subject: [PATCH 6/6] changes --- .../pipeline-indexer-staging-promotion.yml | 15 +++++++-------- .../workflows/pipeline-indexer-testnet-promotion | 14 -------------- .../pipeline-indexer-testnet-promotion.yml | 13 +++++++++++++ 3 files changed, 20 insertions(+), 22 deletions(-) delete mode 100644 .github/workflows/pipeline-indexer-testnet-promotion create mode 100644 .github/workflows/pipeline-indexer-testnet-promotion.yml diff --git a/.github/workflows/pipeline-indexer-staging-promotion.yml b/.github/workflows/pipeline-indexer-staging-promotion.yml index 89e0becfb2..9f2babf0d8 100644 --- a/.github/workflows/pipeline-indexer-staging-promotion.yml +++ b/.github/workflows/pipeline-indexer-staging-promotion.yml @@ -1,16 +1,15 @@ name: Deploy indexer to staging on: - push: - branches: - -pipeline-indexer-staging - paths: - - 'packages/indexer/**' + pull_request: + types: + - closed jobs: - deploy: + on-merge: + if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'pipeline-main-replica' runs-on: ubuntu-latest - + steps: - name: Echo Hello World - run: echo "Hello World" + run: echo "Hello World" \ No newline at end of file diff --git a/.github/workflows/pipeline-indexer-testnet-promotion b/.github/workflows/pipeline-indexer-testnet-promotion deleted file mode 100644 index 31bfefd482..0000000000 --- a/.github/workflows/pipeline-indexer-testnet-promotion +++ /dev/null @@ -1,14 +0,0 @@ -name: Snapshot indexer staging - -on: - schedule: - # Two schedules depending on daylight saving so that it is always 12pm ET - - cron: '0 16 * 3-11 *' - - cron: '0 17 * 11-3 *' -jobs: - deploy: - runs-on: ubuntu-latest - - steps: - - name: Echo Hello World - run: echo "Hello World" diff --git a/.github/workflows/pipeline-indexer-testnet-promotion.yml b/.github/workflows/pipeline-indexer-testnet-promotion.yml new file mode 100644 index 0000000000..8dc597d919 --- /dev/null +++ b/.github/workflows/pipeline-indexer-testnet-promotion.yml @@ -0,0 +1,13 @@ +name: Snapshot indexer staging + +on: + schedule: + # 12pm ET from Mar to Oct, 1pm ET from Nov to Feb due to daylight saving + - cron: '0 16 * * *' +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Echo Hello World + run: echo "Hello World" \ No newline at end of file