-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (35 loc) · 1.37 KB
/
beta-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Release beta release
on:
release:
types: [prereleased]
jobs:
trigger-circleci:
runs-on: ubuntu-latest
strategy:
matrix:
distribution:
- buster
- bullseye
- bookworm
- xenial
- bionic
- focal
- jammy
- centos_7
- centos_8
- centos_9
steps:
-
name: Set version
env:
REF: ${{ github.ref }}
run: VERSION=`sed -E 's/[^0-9]+?([0-9]+\.[0-9]+\.[0-9]+.+?)/\1/' <<< $REF` && echo "VERSION=$VERSION" >> $GITHUB_ENV
-
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
env:
GH_TOKEN: ${{ secrets.TRIGGER_WORKFLOW_TOKEN }}
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=${{ matrix.distribution }}