mirror of
https://github.com/chatmail/relay.git
synced 2026-05-13 17:34:38 +00:00
addressed link2xt comments except tls cleanup and fixed linting, removed leftovers
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
name: test tls_external_cert_and_key
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
domain:
|
||||
required: true
|
||||
type: string
|
||||
secrets:
|
||||
STAGING_SSH_KEY:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
test-tls-external:
|
||||
name: test tls_external_cert_and_key
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
environment:
|
||||
name: ${{ inputs.domain }}
|
||||
concurrency: ${{ inputs.domain }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: scripts/initenv.sh
|
||||
- name: append venv/bin to PATH
|
||||
run: echo venv/bin >>$GITHUB_PATH
|
||||
- name: prepare SSH
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.STAGING_SSH_KEY }}" >> ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
ssh-keyscan ${{ inputs.domain }} >> ~/.ssh/known_hosts 2>/dev/null
|
||||
- name: run tls_external e2e test
|
||||
run: python -m cmdeploy.tests.setup_tls_external ${{ inputs.domain }}
|
||||
@@ -102,11 +102,3 @@ jobs:
|
||||
- name: cmdeploy dns
|
||||
run: ssh root@staging-ipv4.testrun.org "cd relay && scripts/cmdeploy dns -v --ssh-host localhost"
|
||||
|
||||
test-tls-external:
|
||||
needs: deploy
|
||||
uses: ./.github/workflows/reusable-test-tls-external.yaml
|
||||
with:
|
||||
domain: staging-ipv4.testrun.org
|
||||
secrets:
|
||||
STAGING_SSH_KEY: ${{ secrets.STAGING_SSH_KEY }}
|
||||
|
||||
|
||||
8
.github/workflows/test-and-deploy.yaml
vendored
8
.github/workflows/test-and-deploy.yaml
vendored
@@ -95,11 +95,3 @@ jobs:
|
||||
- name: cmdeploy dns
|
||||
run: cmdeploy dns -v
|
||||
|
||||
test-tls-external:
|
||||
needs: deploy
|
||||
uses: ./.github/workflows/reusable-test-tls-external.yaml
|
||||
with:
|
||||
domain: staging2.testrun.org
|
||||
secrets:
|
||||
STAGING_SSH_KEY: ${{ secrets.STAGING_SSH_KEY }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user