mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-05-09 18:23:21 +08:00
chore: remove testing
This commit is contained in:
parent
cf159c578b
commit
f11e2ed931
11
.drone.yml
11
.drone.yml
@ -13,17 +13,6 @@ steps:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: gopath
|
- name: gopath
|
||||||
path: /go
|
path: /go
|
||||||
- commands:
|
|
||||||
- apk add git make curl perl bash build-base zlib-dev ucl-dev
|
|
||||||
- make ssh-server
|
|
||||||
- make test
|
|
||||||
- make coverage
|
|
||||||
image: golang:1.18-alpine
|
|
||||||
name: test
|
|
||||||
pull: always
|
|
||||||
volumes:
|
|
||||||
- name: gopath
|
|
||||||
path: /go
|
|
||||||
- image: robertstettner/drone-codecov
|
- image: robertstettner/drone-codecov
|
||||||
name: codecov
|
name: codecov
|
||||||
pull: always
|
pull: always
|
||||||
|
1
Makefile
1
Makefile
@ -111,7 +111,6 @@ ssh-server:
|
|||||||
cat tests/.ssh/test.pub >> /home/drone-scp/.ssh/authorized_keys
|
cat tests/.ssh/test.pub >> /home/drone-scp/.ssh/authorized_keys
|
||||||
chmod 600 /home/drone-scp/.ssh/authorized_keys
|
chmod 600 /home/drone-scp/.ssh/authorized_keys
|
||||||
chown -R drone-scp /home/drone-scp/.ssh
|
chown -R drone-scp /home/drone-scp/.ssh
|
||||||
# install ssh and start server
|
|
||||||
apk add --update openssh openrc
|
apk add --update openssh openrc
|
||||||
rm -rf /etc/ssh/ssh_host_rsa_key /etc/ssh/ssh_host_dsa_key
|
rm -rf /etc/ssh/ssh_host_rsa_key /etc/ssh/ssh_host_dsa_key
|
||||||
sed -i 's/^#PubkeyAuthentication yes/PubkeyAuthentication yes/g' /etc/ssh/sshd_config
|
sed -i 's/^#PubkeyAuthentication yes/PubkeyAuthentication yes/g' /etc/ssh/sshd_config
|
||||||
|
@ -21,23 +21,23 @@
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
name: 'test',
|
// name: 'test',
|
||||||
image: 'golang:1.18-alpine',
|
// image: 'golang:1.18-alpine',
|
||||||
pull: 'always',
|
// pull: 'always',
|
||||||
commands: [
|
// commands: [
|
||||||
'apk add git make curl perl bash build-base zlib-dev ucl-dev',
|
// 'apk add git make curl perl bash build-base zlib-dev ucl-dev',
|
||||||
'make ssh-server',
|
// 'make ssh-server',
|
||||||
'make test',
|
// 'make test',
|
||||||
'make coverage',
|
// 'make coverage',
|
||||||
],
|
// ],
|
||||||
volumes: [
|
// volumes: [
|
||||||
{
|
// {
|
||||||
name: 'gopath',
|
// name: 'gopath',
|
||||||
path: '/go',
|
// path: '/go',
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
name: 'codecov',
|
name: 'codecov',
|
||||||
image: 'robertstettner/drone-codecov',
|
image: 'robertstettner/drone-codecov',
|
||||||
|
Loading…
Reference in New Issue
Block a user