You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The source branch, that will contains the next release (default to develop)
destination_branch
String
true
The destination branch, that will contain the created release (default to main)
destination_version
String
false
The version of the destination branch AFTER release (if not set SNAPSHOT will be removed)
source_version
String
false
The version of the source branch AFTER release (if not set : X.Y.Z+1-SNAPSHOT)
dry_run
String
false
Do not really push (default to true)
github_app_id
String
true
GitHub app id
BRUXLESS_GH_APP_KEY
Secret
true
The Bruxless GitHub App key
Example
name: Releaseon:
workflow_dispatch:
inputs:
source_branch:
description: 'The source branch, that will contains the next release'type: stringrequired: truedefault: 'develop'destination_branch:
description: 'The destination branch, that will contain the created release'type: stringrequired: truedefault: 'main'destination_version:
description: 'The version of the destination branch AFTER release (if not set SNAPSHOT will be removed)'type: stringsource_version:
description: 'The version of the source branch AFTER release (if not set : X.Y.Z+1-SNAPSHOT)'type: stringdry_run:
description: 'Do not really push'type: booleandefault: trueconcurrency: release-${{ github.ref }}jobs:
build:
uses: bruxless/github_workflow/.github/workflows/java-microservice-release-default.yml@mainwith:
source_branch: ${{ inputs.source_branch }}source_version: ${{ inputs.source_version }}destination_branch: ${{ inputs.destination_branch }}destination_version: ${{ inputs.destination_version }}dry_run: ${{ inputs.dry_run }}github_app_id: "github_app_id"secrets:
BRUXLESS_GH_APP_KEY: ${{ secrets.BRUXLESS_GH_APP_KEY }}
Runner to use to run tests (usually 'bruxless-runner')
container
String
true
Container to use to run tests
environment
String
true
Tested environment (qa, staging or prod)
enabled_deployments_version_fetching
Boolean
false
Enabled deployments version fetching
SLACK_BOT_TOKEN
Secret
true
The slack bot token
ENV_FILE
Secret
true
The env file, containing variables and secrets for the environments
About ENV_FILE
It must be a secret, named '_env_file' (for exemple 'qa_env_file').
It must contain all variable for the given env, even if they are not secrets.
Content exemple:
Note that one secret must contains all the variables required by all tests projects.
As secrets are not "modifiable" but only "replaceable" in github, it may be a very good idea to store content in bitwarden.