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}