digitalocean / digitalocean/doctl
Functions --remote-build doesn't deploy trigger
- Dominant language
- Go
- Stars
- 3.4k
- Forks
- 496
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 31
Description
**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 ''
to namespace ''
on host ''
Submitted function 'foo/bar' for remote building and deployment in runtime python:3.11 (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 --url' for URL):
- foo/bar
(camp) ➜ proj git:(main) ✗ doctl serverless deploy .
Deploying ''
to namespace ''
on host ''
Started running
./build.sh
in
Finished running
./build.sh
in
Deployment status recorded in '.deployed'
Deployed functions ('doctl sls fn get --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:**
- doctl version: 1.163.0
- OS: MacOs 26.5.1 on M3
- Installation method: Homebrew ☕
**Additional Details:**
Contributor guide
Research direction
Start at the doctl serverless deploy path handling --remote-build and compare it with the local deployment path. Use the project.yml trigger configuration and the supplied command output to reproduce the difference; done means remote builds deploy the defined trigger like local deploys, or the behavior is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100