Skip to content

Commit

Permalink
chore(ci): trigger github action workflow instead of circle, split ng…
Browse files Browse the repository at this point in the history
…inx / apache 2 release
  • Loading branch information
joelwurtz committed Aug 9, 2023
1 parent 69d42cf commit cbdb6d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
name: Set major version
run: MAJOR_VERSION=`sed -E 's/[^0-9]+?([0-9]+)\.([0-9]+)\.([0-9]+).+?/\1/' <<< $VERSION` && echo "MAJOR_VERSION=$MAJOR_VERSION" >> $GITHUB_ENV

-
name: Trigger workflow
run: |
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
-
name: Trigger Circle CI API
env:
Expand Down
27 changes: 3 additions & 24 deletions .github/workflows/stable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,6 @@ jobs:
run: MAJOR_VERSION=`sed -E 's/[^0-9]+?([0-9]+)\.([0-9]+)\.([0-9]+).+?/\1/' <<< $VERSION` && echo "MAJOR_VERSION=$MAJOR_VERSION" >> $GITHUB_ENV

-
name: Trigger Circle CI API
env:
CIRCLE_API_TOKEN: ${{ secrets.CIRCLE_API_TOKEN }}
DISTRIBUTION: ${{ matrix.distribution }}
run: >
curl --request POST
--url https://circleci.com/api/v2/project/github/jolicode/redirection.io/pipeline
--header "Circle-Token: $CIRCLE_API_TOKEN"
--header "Content-Type: application/json"
--data "
{
\"branch\":\"master\",
\"parameters\": {
\"run_main\":false,
\"run_php_sdk\": false,
\"run_lint\": false,
\"release_env\": \"production\",
\"release_channel\": \"stable\",
\"release_main_version_dir\": \"$MAJOR_VERSION\",
\"release_nginx_module_version\": \"$VERSION\",
\"release_distribution\": \"$DISTRIBUTION\"
}
}
"
name: Trigger workflow
run: |
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 comments on commit cbdb6d5

Please sign in to comment.