Skip to content

Commit

Permalink
Merge pull request #9 from input-output-hk/misc-updates
Browse files Browse the repository at this point in the history
Misc updates
  • Loading branch information
johnalotoski committed Nov 19, 2020
2 parents 060cb9b + facf2db commit 0236cc7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Buildkite/API.hs
Expand Up @@ -143,7 +143,7 @@ listArtifactsForBuild :: APIToken -- ^ token generated in buildkite setting
listArtifactsForBuild t org pipeline buildNum = getResponseBody <$> httpJSON req
where
req = makeRequest t path
path = buildPath org pipeline buildNum ++ [ "artifacts" ]
path = buildPath org pipeline buildNum ++ [ "artifacts?per_page=100" ]

-- | Returns the URL for downloading an artifact.
-- Although the returned URL might be in our own public S3 bucket,
Expand Down
6 changes: 6 additions & 0 deletions UpdateLogic.hs
Expand Up @@ -199,7 +199,13 @@ getInstallersResults keys instP daedalusRev destDir = do

handleCIResults :: InstallerPredicate -> Turtle.FilePath -> Either Text [CIResult] -> IO [CIResult2]
handleCIResults instP destDir (Right rs) = do
print rs
let rs' = filter instP rs
mapM_ (\result -> do
print result
print $ (installerNetwork . ciResultFilename) result
) rs
print rs'
fetchCIResults destDir rs'
handleCIResults _ _ (Left msg) = T.putStrLn msg >> pure []

Expand Down
6 changes: 6 additions & 0 deletions clusters/mainnet-flight.json
@@ -0,0 +1,6 @@
{
"bucket":"update-cardano-mainnet-flight.iohk.io",
"bucket-url":"update-cardano-mainnet-flight.iohk.io",
"environment":"MainnetFlight"
}

4 changes: 2 additions & 2 deletions clusters/mainnet.json
@@ -1,6 +1,6 @@
{
"bucket":"proposal-ui-test",
"bucket-url":"proposal-ui-test.s3.amazonaws.com",
"bucket":"update-cardano-mainnet.iohk.io",
"bucket-url":"update-cardano-mainnet.iohk.io",
"environment":"Production"
}

0 comments on commit 0236cc7

Please sign in to comment.