Skip to content

Commit cbdb6d5

Browse files
committed
chore(ci): trigger github action workflow instead of circle, split nginx / apache 2 release
1 parent 69d42cf commit cbdb6d5

File tree

2 files changed

+7
-24
lines changed

2 files changed

+7
-24
lines changed

.github/workflows/beta-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
name: Set major version
3232
run: MAJOR_VERSION=`sed -E 's/[^0-9]+?([0-9]+)\.([0-9]+)\.([0-9]+).+?/\1/' <<< $VERSION` && echo "MAJOR_VERSION=$MAJOR_VERSION" >> $GITHUB_ENV
3333

34+
-
35+
name: Trigger workflow
36+
run: |
37+
gh workflow run release.yml -R jolicode/redirection.io -f environment=production -f package=module-nginx -f channel=beta -f version=$VERSION -f version_directory=$MAJOR_VERSION -f build_iteration=1 -f module_image=$DISTRIBUTION
3438
-
3539
name: Trigger Circle CI API
3640
env:

.github/workflows/stable-release.yml

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,6 @@ jobs:
3232
run: MAJOR_VERSION=`sed -E 's/[^0-9]+?([0-9]+)\.([0-9]+)\.([0-9]+).+?/\1/' <<< $VERSION` && echo "MAJOR_VERSION=$MAJOR_VERSION" >> $GITHUB_ENV
3333

3434
-
35-
name: Trigger Circle CI API
36-
env:
37-
CIRCLE_API_TOKEN: ${{ secrets.CIRCLE_API_TOKEN }}
38-
DISTRIBUTION: ${{ matrix.distribution }}
39-
run: >
40-
curl --request POST
41-
--url https://circleci.com/api/v2/project/github/jolicode/redirection.io/pipeline
42-
--header "Circle-Token: $CIRCLE_API_TOKEN"
43-
--header "Content-Type: application/json"
44-
--data "
45-
{
46-
\"branch\":\"master\",
47-
\"parameters\": {
48-
\"run_main\":false,
49-
\"run_php_sdk\": false,
50-
\"run_lint\": false,
51-
\"release_env\": \"production\",
52-
\"release_channel\": \"stable\",
53-
\"release_main_version_dir\": \"$MAJOR_VERSION\",
54-
\"release_nginx_module_version\": \"$VERSION\",
55-
\"release_distribution\": \"$DISTRIBUTION\"
56-
}
57-
}
58-
"
35+
name: Trigger workflow
36+
run: |
37+
gh workflow run release.yml -R jolicode/redirection.io -f environment=production -f package=module-nginx -f channel=stable -f version=$VERSION -f version_directory=$MAJOR_VERSION -f build_iteration=1 -f module_image=$DISTRIBUTION

0 commit comments

Comments
 (0)