Something went wrong. Try again.
A collection of +180 reusable WebAssembly modules for building composable CI/CD pipelines with FluentCI fluentci.io/modules
Something went wrong. Try again.
123456789101112131415161718192021module CI.ContainerSetup (setupWith) where
import Preludeimport CI.Contract as Contractimport CI.Setup.Host as Himport CI.Setup.Types as Typesimport Data.Argonaut.Core (Json)import Data.Either (either)import Effect (Effect)import Effect.Exception (throw)
foreign import install :: Json -> Effect Contract.SetupResult
setupWith :: Json -> Effect Contract.SetupResultsetupWith json = do _ <- either throw pure (Types.decodeConfig "flipt" json) host <- H.host either throw pure (Types.hostSupported "flipt" host) unless (host.os == "linux" || host.os == "macos") $ throw "Flipt supports Linux and macOS only" install json