From 3d2656064ddb08f0bfcdb145f05d9c8d0f52034a Mon Sep 17 00:00:00 2001 From: Cesar Varela Date: Mon, 15 Jan 2024 17:34:19 -0300 Subject: [PATCH 1/6] Deploy production branch --- .github/workflows/production.yml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/production.yml diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml new file mode 100644 index 0000000000..8a62b13eff --- /dev/null +++ b/.github/workflows/production.yml @@ -0,0 +1,34 @@ +name: Deploy Production Branch + +on: + push: + branches: + - master +jobs: + + call-test-build: + uses: ./.github/workflows/test-build.yml + secrets: inherit + with: + sha: ${{ github.sha }} + environment: production + + call-test: + uses: ./.github/workflows/test.yml + needs: call-test-build + secrets: inherit + with: + sha: ${{ github.sha }} + environment: production + + call-deploy: + uses: ./.github/workflows/deploy.yml + needs: call-test + secrets: inherit + permissions: + pull-requests: write + with: + environment: production + sha: ${{ github.sha }} + context: production + alias: From b35efa7dbdce720b38e2b2ac3571ff3b80518b12 Mon Sep 17 00:00:00 2001 From: Cesar Varela Date: Mon, 22 Jan 2024 22:56:03 -0300 Subject: [PATCH 2/6] Update input names --- .github/workflows/production.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 8a62b13eff..fa08c4013a 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -4,6 +4,7 @@ on: push: branches: - master + jobs: call-test-build: @@ -30,5 +31,5 @@ jobs: with: environment: production sha: ${{ github.sha }} - context: production - alias: + netlify-context: production + netlify-alias: From 6cc54c7def0e12c247e8c9085021ca0816402b30 Mon Sep 17 00:00:00 2001 From: Cesar Varela Date: Wed, 24 Jan 2024 17:55:35 -0300 Subject: [PATCH 3/6] Add new input --- .github/workflows/production.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index fa08c4013a..f4c0238e41 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -21,6 +21,7 @@ jobs: with: sha: ${{ github.sha }} environment: production + netlify-context: production call-deploy: uses: ./.github/workflows/deploy.yml From 67f3b20a3a85f63db1b451f3b097d614d0284edc Mon Sep 17 00:00:00 2001 From: Cesar Varela Date: Mon, 29 Jan 2024 17:07:01 -0300 Subject: [PATCH 4/6] Add atlas and cron on same file --- .github/workflows/production.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index f4c0238e41..c034e55697 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -4,15 +4,26 @@ on: push: branches: - master + schedule: + - cron: '0 6,18 * * *' jobs: + call-atlas: + uses: ./.github/workflows/realm.yml + secrets: inherit + with: + sha: ${{ github.sha }} + environment: staging + call-test-build: uses: ./.github/workflows/test-build.yml secrets: inherit + needs: call-atlas with: sha: ${{ github.sha }} environment: production + netlify-context: production call-test: uses: ./.github/workflows/test.yml @@ -21,7 +32,6 @@ jobs: with: sha: ${{ github.sha }} environment: production - netlify-context: production call-deploy: uses: ./.github/workflows/deploy.yml From eba6be07377c71eea61c7c9c08e276b08e6d456e Mon Sep 17 00:00:00 2001 From: Cesar Varela Date: Mon, 29 Jan 2024 17:19:38 -0300 Subject: [PATCH 5/6] Delete old cron --- .github/workflows/run_build.yml | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 .github/workflows/run_build.yml diff --git a/.github/workflows/run_build.yml b/.github/workflows/run_build.yml deleted file mode 100644 index d6d0898ed0..0000000000 --- a/.github/workflows/run_build.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: 'Netlify Deploy to Production' - -on: - schedule: - - cron: "0 6,18 * * *" - -jobs: - deploy: - name: 'Deploy' - runs-on: ubuntu-latest - - steps: - - name: Curl request - run: curl -X POST -d {} ${{ secrets.NETLIFYBUILDURL }} From 8e280292842133c691231487e290b03e15c99af3 Mon Sep 17 00:00:00 2001 From: Cesar Varela Date: Tue, 30 Jan 2024 11:56:22 -0300 Subject: [PATCH 6/6] Update .github/workflows/production.yml Co-authored-by: Kevin --- .github/workflows/production.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index c034e55697..dc7526629a 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -14,7 +14,7 @@ jobs: secrets: inherit with: sha: ${{ github.sha }} - environment: staging + environment: production call-test-build: uses: ./.github/workflows/test-build.yml