Describe the Issue:
From inside the root of my function dir, running doctl sls deploy . --remote-build does not deploy trigger. Only the code is deployed.
When running without remote build doctl sls deploy . the trigger deploys fine.
The output of remote build does not list triggers as being deployed. Running without remote build does list the deployed trigger.
(base) ➜ proj git:(main) ✗ doctl serverless deploy . --remote-build
Deploying '<dir>'
to namespace '<ns>'
on host '<somewhere>'
Submitted function 'foo/bar' for remote building and deployment in runtime python:3.11 (id: <id>)
Processing of action 'foo/bar' is still running remotely ...
Processing of action 'foo/bar' is still running remotely ...
Processing of action 'foo/bar' is still running remotely ...
Processing of action 'foo/bar' is still running remotely ...
Processing of action 'foo/bar' is still running remotely ...
Processing of action 'foo/bar' is still running remotely ...
Deployed functions ('doctl sls fn get <funcName> --url' for URL):
- foo/bar
(camp) ➜ proj git:(main) ✗ doctl serverless deploy .
Deploying '<dir>'
to namespace '<ns>'
on host '<somewhere>'
Started running
./build.sh
in
<repo>
Finished running
./build.sh
in
<repo>
Deployment status recorded in '.deployed'
Deployed functions ('doctl sls fn get <funcName> --url' for URL):
- foo/bar
Deployed triggers:
- trigger-daily
Expected: --remote-build should deploy triggers defined in project.yml, same as local deploy, or the docs should state that remote builds do not deploy triggers.
project.yml
environment:
service_key: '${SERVICE_KEY}'
packages:
- name: foo
functions:
- name: bar
main: ""
runtime: 'python:3.11'
limits:
timeout: 600000
memory: 1024
triggers:
- name: trigger-daily
sourceType: scheduler
sourceDetails:
cron: "* * * * *"
withBody:
spreadsheet: "foo"
numbers_sheet: "numbers"
messages_sheet: "messages"
Environment:
Additional Details:
Describe the Issue:
From inside the root of my function dir, running
doctl sls deploy . --remote-builddoes not deploy trigger. Only the code is deployed.When running without remote build
doctl sls deploy .the trigger deploys fine.The output of remote build does not list triggers as being deployed. Running without remote build does list the deployed trigger.
Expected:
--remote-buildshould deploy triggers defined inproject.yml, same as local deploy, or the docs should state that remote builds do not deploy triggers.project.yml
Environment:
doctl version: 1.163.0
OS: MacOs 26.5.1 on M3
Installation method: Homebrew ☕
Additional Details: