mirror of
https://github.com/chatmail/relay.git
synced 2026-05-19 12:28:06 +00:00
test example workflow
This commit is contained in:
14
.github/workflows/test-and-deploy.yaml
vendored
14
.github/workflows/test-and-deploy.yaml
vendored
@@ -12,13 +12,9 @@ on:
|
|||||||
- 'LICENSE'
|
- 'LICENSE'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
allocate:
|
|
||||||
uses: chatmail/hetzner-relay/.github/workflows/allocate.yml@main
|
|
||||||
|
|
||||||
deploy-and-test:
|
deploy-and-test:
|
||||||
name: deploy on allocated VPS, and run tests
|
name: deploy on allocated VPS, and run tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: allocate
|
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -42,11 +38,9 @@ jobs:
|
|||||||
- run: |
|
- run: |
|
||||||
git clone https://github.com/chatmail/hetzner-relay ../hetzner-relay
|
git clone https://github.com/chatmail/hetzner-relay ../hetzner-relay
|
||||||
pip install ../hetzner-relay
|
pip install ../hetzner-relay
|
||||||
python3 ../hetzner-relay/main.py --dns --test --vps ${{ needs.allocate.outputs.vps_name }} --run-id $GITHUB_RUN_ID --domain2 chatmail-ci.testrun.org .
|
#python3 ../hetzner-relay/main.py --dns --test --vps ${{ needs.allocate.outputs.vps_name }} --run-id $GITHUB_RUN_ID --domain2 chatmail-ci.testrun.org .
|
||||||
|
|
||||||
rebuild:
|
test-workflow:
|
||||||
needs: [allocate, deploy-and-test]
|
uses: chatmail/hetzner-relay/.github/workflows/test.yml@main
|
||||||
uses: chatmail/hetzner-relay/.github/workflows/rebuild.yml@main
|
|
||||||
if: always()
|
|
||||||
with:
|
with:
|
||||||
vps_name: ${{ needs.allocate.outputs.vps_name }}
|
config_path: test
|
||||||
|
|||||||
Reference in New Issue
Block a user