This commit is contained in:
10
.drone.yml
10
.drone.yml
@@ -7,7 +7,7 @@ steps:
|
||||
- name: build
|
||||
image: docker:dind
|
||||
environment:
|
||||
COMPOSE_PROJECT_NAME: dav-testing-${DRONE_COMMIT_BRANCH//\//-}
|
||||
COMPOSE_PROJECT_NAME: ${DRONE_REPO_OWNER,,}-${DRONE_REPO_NAME,,}-${DRONE_COMMIT_BRANCH//\//-}
|
||||
NUXT_APP_BASE_URL: /${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_COMMIT_BRANCH}/
|
||||
SERVICE_3000_CHECK_HTTP: /${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_COMMIT_BRANCH}/
|
||||
SERVICE_3000_TAGS: urlprefix-testing.asycn.io/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_COMMIT_BRANCH}/*
|
||||
@@ -19,7 +19,7 @@ steps:
|
||||
path: /var/run/docker.sock
|
||||
|
||||
- name: publish
|
||||
image: ryjer/drone-scp
|
||||
image: plugins/sftp
|
||||
settings:
|
||||
username:
|
||||
from_secret: ssh_username
|
||||
@@ -27,9 +27,8 @@ steps:
|
||||
from_secret: ssh_password
|
||||
host: open.us.org
|
||||
port: 22
|
||||
rm: true
|
||||
source: ./.output/public/
|
||||
target: /dav/www/
|
||||
files: ./.output/public/
|
||||
destination_path: /dav/www/
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
@@ -41,6 +40,7 @@ steps:
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
- failure
|
||||
settings:
|
||||
token:
|
||||
from_secret: telegram_token
|
||||
|
||||
Reference in New Issue
Block a user