https://dagster.io/ logo
Title
l

Leo Qin

10/31/2022, 8:24 PM
hello - trying to set up branch deployments for our project that uses dagster serverless... Given that we don't use a custom image, what should we specify for the image in the
add-location
command?
b

ben

10/31/2022, 8:28 PM
Hi Leo, you’ll probably want to use
dagster-cloud serverless deploy
instead (https://docs.dagster.io/master/dagster-cloud/getting-started/getting-started-with-serverless-deployment#using-the-dagster-cloud-cli)
dagster-cloud serverless deploy \
       --organization $ORGANIZATION_NAME \
       --deployment $BRANCH_DEPLOYMENT_NAME \
       --api-token $DAGSTER_CLOUD_API_TOKEN \
       --location-name $LOCATION_NAME \
       --package-name $PACKAGE_NAME \
add-location
is set up more for Hybrid users
l

Leo Qin

10/31/2022, 8:28 PM
ah, thank you!
does that variation of the command also support
--read-git-state
, etc?
b

ben

10/31/2022, 8:30 PM
--read-git-state
gets passed along with the
create-or-update
branch deployment command - you’ll still want to use that
l

Leo Qin

10/31/2022, 8:30 PM
ah, i see! thank you, i'll give it a shot
b

ben

10/31/2022, 8:31 PM
so you’ll use e.g.
dagster-cloud branch-deployment create-or-update ...
to create the branch, then
dagster-cloud serverless deploy ...
to build and deploy the image
l

Leo Qin

10/31/2022, 8:52 PM
it works! thanks. On a similar topic, is it possible to permission an API token to only do branch deployments but not full deployments?
b

ben

11/01/2022, 3:26 PM
Hi Leo, a token with “Editor” permissions will be able to manage branch deployments but not full deployments
:rainbow-daggy: 1