Philip Bennett

    Philip Bennett

    1 year ago
    Hey all. I'm trying to deploy all our flows automatically from Google Cloud Build or GitHub actions in our Prod environment. We use Docker storage for our flows. Has anyone had any luck in doing this? I can foresee a few issues:1. We will need to run Docker within the Cloud Build container as the
    flow.register()
    method uses Docker to build the image. I'm not sure if this is possible. 2. We will need to create firewall rules that allow Google Cloud Build to communicate with Prefect server running as a Compute VM. I'd be interested how people are automatically deploying flows from any CI/CD platform.
    Kyle Moon-Wright

    Kyle Moon-Wright

    1 year ago
    Hey @Philip Bennett, I can't speak to Google Cloud Build specifically - but there are a few threads here in the community that I think will be useful for your CI considerations like this one (there's a nested thread in there as well).
    Philip Bennett

    Philip Bennett

    1 year ago
    Thanks - I'll look at these threads
    Adam

    Adam

    1 year ago
    Hi @Philip Bennett this is how we’re doing it. We call this python file in our CI/CD pipeline. It builds the docker image and registers the flows
    Philip Bennett

    Philip Bennett

    1 year ago
    Thanks Adam - that's really useful and clear to understand. Your Docker in Docker workaround is great - I was struggling to get my head around the Docker-in-Docker scenario!