Skip to content

GlueTrans Debug Workflow #2

GlueTrans Debug Workflow

GlueTrans Debug Workflow #2

Workflow file for this run

name: GlueTrans Debug Workflow
on:
workflow_dispatch:
inputs:
custom_gluetun_version:
description: 'Set a version of Gluetun to test against'
required: false
default: v3.39
tmate_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false
env:
GLUETRANS_VPN_USERNAME: ${{ secrets.GLUETRANS_VPN_USERNAME }}
GLUETRANS_VPN_PASSWORD: ${{ secrets.GLUETRANS_VPN_PASSWORD }}
GLUETRANS_VPN_REGIONS: ${{ secrets.GLUETRANS_VPN_REGIONS }}
GLUETRANS_TRANSMISSION_USERNAME: ${{ secrets.GLUETRANS_TRANSMISSION_USERNAME }}
GLUETRANS_TRANSMISSION_PASSWORD: ${{ secrets.GLUETRANS_TRANSMISSION_PASSWORD }}
GLUETRANS_SONAR_ORGANIZATION: ${{ secrets.GLUETRANS_SONAR_ORGANIZATION }}
GLUETRANS_SONAR_PROJECT_KEY: ${{ secrets.GLUETRANS_SONAR_PROJECT_KEY }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
jobs:
tmate-debug:
if: ${{ github.event_name == 'workflow_dispatch' && github.actor == 'miklosbagi' && github.event.inputs.tmate_enabled == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: mxschmitt/action-tmate@v3
name: Tmate Debug Session
with:
limit-access-to-actor: true
custom-gluetun-version-check:
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.custom_gluetun_version != '' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build env and run tests
run: make GLUETUN_VERSION=${{ github.event.inputs.custom_gluetun_version }} pr-test