Skip to content

Release beta release #16

Release beta release

Release beta release #16

Workflow file for this run

name: Release beta release
on:
release:
types: [prereleased]
jobs:
trigger-release:
runs-on: ubuntu-latest
strategy:
matrix:
distribution:
- buster
- bullseye
- bookworm
- xenial
- bionic
- focal
- jammy
- centos_7
- centos_8
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-apache2 -f channel=beta -f version=$VERSION -f version_directory=$MAJOR_VERSION -f build_iteration=1 -f module_image=${{ matrix.distribution }}