Skip to content

Commit fed83d2

Browse files
committed
setup ssh
1 parent a1eaac0 commit fed83d2

2 files changed

Lines changed: 17 additions & 14 deletions

File tree

.ci/setup_ssh_config.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
set -exu
4+
5+
whoami
6+
7+
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
8+
9+
ssh localhost
10+
11+
exit 1
12+

.github/workflows/ci.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
pull_request: {}
5-
push: { branches: [ master ] }
5+
push: { branches: [ ssh-ci ] }
66

77
jobs:
88
build:
@@ -11,9 +11,8 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
include:
14-
- { name: "default" }
15-
- { name: "over TCP", dockerHost: "tcp://127.0.0.1:2375" }
16-
- { name: "Docker 18.06.3", dockerVersion: "18.06.3~ce~3-0~ubuntu" }
14+
- { name: "ssh-default" , dockerHost: "ssh://junit-host"}
15+
#- { name: "ssh-19.03.9" , dockerVersion: "19.03.9~3-0~ubuntu-bionic", dockerHost: "ssh://junit-host"}
1716

1817
steps:
1918
- uses: actions/checkout@v1
@@ -26,17 +25,9 @@ jobs:
2625
DOCKER_VERSION: ${{matrix.dockerVersion}}
2726
DOCKER_HOST: ${{matrix.dockerHost}}
2827
run: .ci/setup_docker.sh
28+
- name: ssh config
29+
run: .ci/setup_ssh_config.sh
2930
- name: Build with Maven
3031
env:
3132
DOCKER_HOST: ${{matrix.dockerHost}}
3233
run: ./mvnw --no-transfer-progress verify
33-
- name: Aggregate test reports with ciMate
34-
if: always()
35-
continue-on-error: true
36-
env:
37-
CIMATE_PROJECT_ID: lodr9d83
38-
CIMATE_CI_KEY: "CI / ${{matrix.name}}"
39-
run: |
40-
wget -q https://get.cimate.io/release/linux/cimate
41-
chmod +x cimate
42-
./cimate "**/TEST-*.xml"

0 commit comments

Comments
 (0)