feat: 构建文件示例,重命名 lftp 脚本变量
This commit is contained in:
parent
aabd743a07
commit
00d893bb78
16
.gitlab-ci.yml.example
Normal file
16
.gitlab-ci.yml.example
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
variables:
|
||||
HOST: ftp.host
|
||||
USER: ftp.username
|
||||
PASSWD: ftp.passoword
|
||||
LOCAL_DIR: local/dir
|
||||
REMOTE_DIR: remote/dir
|
||||
stages:
|
||||
- build
|
||||
cache:
|
||||
key: ${CI_BUILD_REF_NAME}
|
||||
paths:
|
||||
- path/cache
|
||||
build_production:
|
||||
stage: build
|
||||
script:
|
||||
- bash ./scripts/lftp.sh ${HOST} ${USER} ${PASSWD} ${LOCAL_DIR} ${REMOTE_DIR}
|
||||
Loading…
Reference in New Issue
Block a user