Skip to content

Error while trying to deploy existing image #4

@BoukeNijhuis

Description

@BoukeNijhuis

I try to follow the steps at this page:

https://docs.functions.onstackit.cloud/how-tos/create-custom-functions.html

It gives the following command:

sfn function deploy \
    --build=false \
    --push=true \
    --image <your-registry.domain/group/image>

I change this into the following:

sfn function deploy \
    --build=false \
    --push=false \
    --image rg.fr-par.scw.cloud/bouke/solar-panel-checker:latest

This gives me the following error:

Error: error: unexpected value 'false' for '--build' found; no more were expected

Usage: sfn functions deploy --build

For more information, try '--help'.

I tried one more attempt:

sfn function deploy --image rg.fr-par.scw.cloud/bouke/solar-panel-checker:latest

This leads to:

Error: Error creating function revision: HTTP error: 400 Bad Request
request body has an error: doesn't match schema #/components/schemas/Revision: Error at "/oci_reference": string doesn't match the regular expression "(:[vV]?\d+\.\d+\.\d+(@sha256:[a-fA-F0-9]{64})?)$|((:latest)?@sha256:[a-fA-F0-9]{64})$"

Not sure how to proceed. What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions