-
Notifications
You must be signed in to change notification settings - Fork 546
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add suffix to dockers and debian packages built with different profil…
…e that devnet
- Loading branch information
Showing
20 changed files
with
208 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
let Prelude = ../External/Prelude.dhall | ||
let Profiles = ./Profiles.dhall | ||
|
||
let Docker: Type = < Bookworm | Bullseye | Buster | Jammy | Focal > | ||
|
||
let capitalName = \(docker : Docker) -> | ||
merge { | ||
Bookworm = "Bookworm" | ||
, Bullseye = "Bullseye" | ||
, Buster = "Buster" | ||
, Jammy = "Jammy" | ||
, Focal = "Focal" | ||
} docker | ||
|
||
let lowerName = \(docker : Docker) -> | ||
merge { | ||
Bookworm = "bookworm" | ||
, Bullseye = "bullseye" | ||
, Buster = "buster" | ||
, Jammy = "jammy" | ||
, Focal = "focal" | ||
} docker | ||
|
||
let dependsOn = \(docker : Docker) -> \(profile : Profiles.Type) -> \(binary: Text) -> | ||
let profileName = Profiles.capitalName profile in | ||
let prefix = "MinaArtifact" in | ||
merge { | ||
Bookworm = [{ name = "${prefix}${profileName}", key = "${binary}-${lowerName docker}-docker-image" }] | ||
, Bullseye = [{ name = "${prefix}${capitalName docker}${profileName}", key = "${binary}-${lowerName docker}-docker-image" }] | ||
, Buster = [{ name = "${prefix}${capitalName docker}${profileName}", key = "${binary}-${lowerName docker}-docker-image" }] | ||
, Jammy = [{ name = "${prefix}${capitalName docker}${profileName}", key = "${binary}-${lowerName docker}-docker-image" }] | ||
, Focal = [{ name = "${prefix}${capitalName docker}${profileName}", key = "${binary}-${lowerName docker}-docker-image" }] | ||
} docker | ||
|
||
in | ||
|
||
{ | ||
Type = Docker | ||
, capitalName = capitalName | ||
, lowerName = lowerName | ||
, dependsOn = dependsOn | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
let Prelude = ../External/Prelude.dhall | ||
|
||
let Profile : Type = < Standard | Lightnet > | ||
|
||
let capitalName = \(profile : Profile) -> | ||
merge { | ||
Standard = "Standard" | ||
, Lightnet = "Lightnet" | ||
} profile | ||
|
||
let lowerName = \(profile : Profile) -> | ||
merge { | ||
Standard = "standard" | ||
, Lightnet = "lightnet" | ||
} profile | ||
|
||
let duneProfile = \(profile : Profile) -> | ||
merge { | ||
Standard = "devnet" | ||
, Lightnet = "lightnet" | ||
} profile | ||
|
||
let toSuffixUppercase = \(profile : Profile) -> | ||
merge { | ||
Standard = "" | ||
, Lightnet = "Lightnet" | ||
} profile | ||
|
||
let toSuffixLowercase = \(profile : Profile) -> | ||
merge { | ||
Standard = "" | ||
, Lightnet = "lightnet" | ||
} profile | ||
|
||
|
||
|
||
in | ||
|
||
{ | ||
Type = Profile | ||
, capitalName = capitalName | ||
, lowerName = lowerName | ||
, duneProfile = duneProfile | ||
, toSuffixUppercase = toSuffixUppercase | ||
, toSuffixLowercase = toSuffixLowercase | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
buildkite/src/Jobs/Release/MinaArtifactBullseyeLightnet.dhall
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
let ArtifactPipelines = ../../Command/MinaArtifact.dhall | ||
let Pipeline = ../../Pipeline/Dsl.dhall | ||
|
||
in | ||
|
||
Pipeline.build ArtifactPipelines.bullseye-lightnet |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.