Skip to content

Commit

Permalink
feat: configurable run-name for test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
foosel committed Nov 6, 2024
1 parent 316f6a2 commit ba1bbe3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/test_against_testrig.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: "Test against testrig"
run-name: ${{ inputs.run-name }}

# Needed secrets:
# - DEPLOY_KEY: private ssh key to access [email protected]
# - DEPLOY_KNOWN_HOSTS: known hosts including [email protected]
# - TAILSCALE_AUTHKEY: reusable, ephemeral, tagged tailscale auth key to access flashhost
# and DUTs
# - TESTRIG_WIFI_NAME, TESTRIG_WIFI_KEY, TESTRIG_WIFI_ENCKEY: wifi credentials to cloak

on:
workflow_dispatch:
Expand All @@ -16,11 +18,14 @@ on:
image:
description: "Image to deploy"
required: false
default: '0.18.0-latest'
default: '1.0.0-latest'
e2e-branch:
description: "Branch to run E2E tests from"
required: false
default: 'maintenance'
run-name:
description: "Distinct run-name to use"
required: false

jobs:
deploy:
Expand All @@ -35,9 +40,11 @@ jobs:
env:
TESTRIG_WIFI_NAME: ${{ secrets.TESTRIG_WIFI_NAME }}
TESTRIG_WIFI_KEY: ${{ secrets.TESTRIG_WIFI_KEY }}
TESTRIG_WIFI_ENCKEY: ${{ secrets.TESTRIG_WIFI_ENCKEY }}
run: |
echo "::add-mask::$TESTRIG_WIFI_NAME"
echo "::add-mask::$TESTRIG_WIFI_KEY"
echo "::add-mask::$TESTRIG_WIFI_ENCKEY"
- name: "🔑 Install SSH key in agent"
uses: shimataro/ssh-key-action@v2
Expand Down

0 comments on commit ba1bbe3

Please sign in to comment.