kind: pipeline type: docker name: test platform: arch: amd64 os: linux steps: - name: test image: docker/compose:1.29.2 commands: - docker-compose config - mv .env .env.example - name: deploy image: appleboy/drone-scp:linux-amd64 settings: host: 49.4.92.112 port: 9022 username: root password: from_secret: ssh_password target: /data/publish2/frp/publish source: ./ rm: false - name: restart image: appleboy/drone-ssh:linux-amd64 settings: host: 49.4.92.112 port: 9022 username: root password: from_secret: ssh_password script: - cd /data/publish2/frp/publish - docker compose up --remove-orphans -d