Skip to content

Functions --remote-build doesn't deploy trigger #1868

Description

@GilbertYoder

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:

  • doctl version: 1.163.0

  • OS: MacOs 26.5.1 on M3

  • Installation method: Homebrew ☕

Additional Details:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions