refactor(build): updated .drone
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -19,7 +19,7 @@ local build = {
|
||||
]
|
||||
+
|
||||
[
|
||||
buildContainer.new(registryFHQ,self.imageName,v.tag,v.dir).withPlatform(arch)
|
||||
buildContainer.new(registryFHQ,self.imageName,v.tag+"-"+arch.arch,v.dir).withPlatform(arch)
|
||||
.withName("Build-Push-Container-" + arch.arch)
|
||||
for v in self.versions
|
||||
for arch in self.archs
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
local pipeline = import '../drone/pipeline.jsonnet';
|
||||
local build = import '../steps/buildContainerImage.jsonnet';
|
||||
|
||||
local push = import '../steps/pushContainerImage.jsonnet';
|
||||
{
|
||||
new(registry,name,tag,dir):: pipeline.new()
|
||||
.withName("Build-Push-Container")
|
||||
.withSteps([
|
||||
build.new(name,tag,dir)
|
||||
build.new(name,tag,dir),
|
||||
push.new(registry,name,tag)
|
||||
])
|
||||
}
|
||||
10
.drone/libs/steps/pushContainerImage.jsonnet
Normal file
10
.drone/libs/steps/pushContainerImage.jsonnet
Normal file
@@ -0,0 +1,10 @@
|
||||
local step = import '../drone/step.jsonnet';
|
||||
|
||||
{
|
||||
new(repository,name,tag):: step.new("Push Container Image", "quay.io/buildah/stable")
|
||||
.withPrivileged()
|
||||
.withCommands([
|
||||
"buildah push " + name + ":" + tag + " docker://" + repository.hostname + "/" + name + ":" + tag
|
||||
])
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user