From 852c5c0461f81dbf62aeb24da0a4470d9b7b6941 Mon Sep 17 00:00:00 2001 From: Francisco Silva Date: Thu, 6 Jun 2024 10:52:27 +0100 Subject: [PATCH 1/6] add test rules to deploy bifrost --- .github/workflows/deploy-bifrost.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/deploy-bifrost.yml diff --git a/.github/workflows/deploy-bifrost.yml b/.github/workflows/deploy-bifrost.yml new file mode 100644 index 00000000..5039209f --- /dev/null +++ b/.github/workflows/deploy-bifrost.yml @@ -0,0 +1,21 @@ +name: pre-commit checks + +on: + push: + branches: + - fs/trigger-bifrost-pipeline + +jobs: + check: + runs-on: ubuntu-20.04 + + steps: + - name: Trigger bifrost pipeline + env: + GITLAB_API_TOKEN: ${{ secrets.GITLAB_API_TOKEN }} + run: | + curl --request POST \ + --form token=$GITLAB_API_TOKEN \ + --form ref=master \ + --form variables[CONTENTSTACK_TRIGGER]="production" \ + https://gitlab.com/api/v4/projects/33388494/ref/master/trigger/pipeline/ From ebbbd34017dda23399408c4cd23c6aa80e6badfd Mon Sep 17 00:00:00 2001 From: Francisco Silva Date: Thu, 6 Jun 2024 10:54:14 +0100 Subject: [PATCH 2/6] fix job name --- .github/workflows/deploy-bifrost.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-bifrost.yml b/.github/workflows/deploy-bifrost.yml index 5039209f..16257d48 100644 --- a/.github/workflows/deploy-bifrost.yml +++ b/.github/workflows/deploy-bifrost.yml @@ -1,4 +1,4 @@ -name: pre-commit checks +name: Trigger bifrost deployment on: push: @@ -7,10 +7,10 @@ on: jobs: check: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - - name: Trigger bifrost pipeline + - name: Trigger gitlab pipeline env: GITLAB_API_TOKEN: ${{ secrets.GITLAB_API_TOKEN }} run: | From 704d961dd106c8cc94ac09e09678452849e750e9 Mon Sep 17 00:00:00 2001 From: Francisco Silva Date: Thu, 6 Jun 2024 11:30:15 +0100 Subject: [PATCH 3/6] target master branch --- .github/workflows/deploy-bifrost.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-bifrost.yml b/.github/workflows/deploy-bifrost.yml index 16257d48..c3ea59fe 100644 --- a/.github/workflows/deploy-bifrost.yml +++ b/.github/workflows/deploy-bifrost.yml @@ -3,7 +3,7 @@ name: Trigger bifrost deployment on: push: branches: - - fs/trigger-bifrost-pipeline + - master jobs: check: @@ -17,5 +17,5 @@ jobs: curl --request POST \ --form token=$GITLAB_API_TOKEN \ --form ref=master \ - --form variables[CONTENTSTACK_TRIGGER]="production" \ + --form variables[SPACES_TRIGGER]="production" \ https://gitlab.com/api/v4/projects/33388494/ref/master/trigger/pipeline/ From 50635c658e7837863350fbcefa04780bfe973579 Mon Sep 17 00:00:00 2001 From: Francisco Silva Date: Thu, 6 Jun 2024 11:32:54 +0100 Subject: [PATCH 4/6] fix job name --- .github/workflows/deploy-bifrost.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-bifrost.yml b/.github/workflows/deploy-bifrost.yml index c3ea59fe..a3617570 100644 --- a/.github/workflows/deploy-bifrost.yml +++ b/.github/workflows/deploy-bifrost.yml @@ -6,7 +6,7 @@ on: - master jobs: - check: + deploy: runs-on: ubuntu-latest steps: From 19f2dc6b8440c5656d098c62dbe9871a2f6e7b8d Mon Sep 17 00:00:00 2001 From: Francisco Silva Date: Thu, 6 Jun 2024 14:35:45 +0100 Subject: [PATCH 5/6] test local branch --- .github/workflows/deploy-bifrost.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-bifrost.yml b/.github/workflows/deploy-bifrost.yml index a3617570..bf5d48f2 100644 --- a/.github/workflows/deploy-bifrost.yml +++ b/.github/workflows/deploy-bifrost.yml @@ -3,7 +3,7 @@ name: Trigger bifrost deployment on: push: branches: - - master + - fs/trigger-bifrost-pipeline jobs: deploy: From 95b5a18dff707029262f5a7d24efc49ece2745e2 Mon Sep 17 00:00:00 2001 From: Francisco Silva Date: Thu, 6 Jun 2024 14:39:14 +0100 Subject: [PATCH 6/6] revert test change --- .github/workflows/deploy-bifrost.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-bifrost.yml b/.github/workflows/deploy-bifrost.yml index bf5d48f2..a3617570 100644 --- a/.github/workflows/deploy-bifrost.yml +++ b/.github/workflows/deploy-bifrost.yml @@ -3,7 +3,7 @@ name: Trigger bifrost deployment on: push: branches: - - fs/trigger-bifrost-pipeline + - master jobs: deploy: