Skip to content

Commit

Permalink
Make the main releases multi-arch
Browse files Browse the repository at this point in the history
With multi-arch builds, the base image is built by a dedicated
task and should not be in the list of outputs of the publish
task. Since the publish task is shared by nightly and full
releases, the solution is to turn the full releases to multi
arch as well.

Signed-off-by: Andrea Frittoli <[email protected]>
  • Loading branch information
afrittoli authored and tekton-robot committed Oct 26, 2020
1 parent 8a5b79b commit adc4cfa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
2 changes: 0 additions & 2 deletions tekton/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ spec:
outputs:
- name: bucket
type: storage
- name: builtBaseImage
type: image
- name: builtEntrypointImage
type: image
- name: builtNopImage
Expand Down
18 changes: 16 additions & 2 deletions tekton/release-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,22 @@ spec:
inputs:
- name: source
resource: source-repo
- name: build-base-image
runAfter: [build, unit-tests]
taskRef:
name: build-multiarch-base-image
params:
- name: pathToProject
value: $(params.package)
- name: imageRegistry
value: $(params.imageRegistry)
resources:
inputs:
- name: source
resource: source-repo
outputs:
- name: builtBaseImage
resource: builtBaseImage
- name: publish-images
runAfter: [build, unit-tests]
taskRef:
Expand All @@ -107,8 +123,6 @@ spec:
outputs:
- name: bucket
resource: bucket
- name: builtBaseImage
resource: builtBaseImage
- name: builtEntrypointImage
resource: builtEntrypointImage
- name: builtNopImage
Expand Down

0 comments on commit adc4cfa

Please sign in to comment.