Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nightly release on latest tekton #1422

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions tekton/ci-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,43 @@ spec:
- name: gcp-secret
secret:
secretName: release-secret
---

apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
name: publish-ci-images-triggers
spec:
inputs:
resources:
- name: source
type: git
params:
- name: imageRegistry
description: TODO(#569) This is a hack to make it easy for folks to switch the registry being used by the many many image outputs
outputs:
resources:
- name: builtKoImage
type: image
steps:

- name: build-push-ko-image
image: gcr.io/kaniko-project/executor:v0.9.0
command:
- /kaniko/executor
args:
- --dockerfile=/workspace/source/tekton/ko/Dockerfile
- --destination=$(inputs.params.imageRegistry)/$(outputs.resources.builtKoImage.url)
- --context=/workspace/source

volumeMounts:
- name: gcp-secret
mountPath: /secret
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /secret/release.json

volumes:
- name: gcp-secret
secret:
secretName: release-secret
141 changes: 141 additions & 0 deletions tekton/release-pipeline-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,144 @@ spec:
resource: builtPullRequestInitImage
- name: builtGcsFetcherImage
resource: builtGcsFetcherImage
---
apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
name: pipeline-release-nightly-triggers
spec:
params:
- name: package
description: package to release
default: github.com/tektoncd/pipeline
- name: imageRegistry
default: gcr.io/tekton-nightly
- name: versionTag
description: The X.Y.Z version that the artifacts should be tagged with
resources:
- name: source-repo
type: git
- name: bucket
type: storage
- name: builtKoImage
type: image
- name: builtBaseImage
type: image
- name: builtEntrypointImage
type: image
- name: builtKubeconfigWriterImage
type: image
- name: builtCredsInitImage
type: image
- name: builtGitInitImage
type: image
- name: builtNopImage
type: image
- name: builtBashImage
type: image
- name: builtGsutilImage
type: image
- name: builtControllerImage
type: image
- name: builtWebhookImage
type: image
- name: builtDigestExporterImage
type: image
- name: builtPullRequestInitImage
type: image
- name: builtGcsFetcherImage
type: image
tasks:
- name: lint
taskRef:
name: golangci-lint
params:
- name: package
value: $(params.package)
- name: flags
value: -v
resources:
inputs:
- name: source
resource: source-repo
- name: unit-tests
runAfter: [lint]
taskRef:
name: golang-test
params:
- name: package
value: $(params.package)
resources:
inputs:
- name: source
resource: source-repo
- name: build
runAfter: [lint]
taskRef:
name: golang-build
params:
- name: package
value: $(params.package)
resources:
inputs:
- name: source
resource: source-repo
- name: publish-ko-image
taskRef:
name: publish-ci-images-triggers
params:
- name: imageRegistry
value: $(params.imageRegistry)
resources:
inputs:
- name: source
resource: source-repo
outputs:
- name: builtKoImage
resource: builtKoImage
- name: publish-images
runAfter: [publish-ko-image, build, unit-tests]
taskRef:
name: publish-tekton-pipelines
params:
- name: pathToProject
value: $(params.package)
- name: versionTag
value: $(params.versionTag)
- name: imageRegistry
value: $(params.imageRegistry)
resources:
inputs:
- name: source
resource: source-repo
- name: bucket
resource: bucket
outputs:
- name: bucket
resource: bucket
- name: builtBaseImage
resource: builtBaseImage
- name: builtEntrypointImage
resource: builtEntrypointImage
- name: builtKubeconfigWriterImage
resource: builtKubeconfigWriterImage
- name: builtCredsInitImage
resource: builtCredsInitImage
- name: builtGitInitImage
resource: builtGitInitImage
- name: builtNopImage
resource: builtNopImage
- name: builtBashImage
resource: builtBashImage
- name: builtGsutilImage
resource: builtGsutilImage
- name: builtControllerImage
resource: builtControllerImage
- name: builtWebhookImage
resource: builtWebhookImage
- name: builtDigestExporterImage
resource: builtDigestExporterImage
- name: builtPullRequestInitImage
resource: builtPullRequestInitImage
- name: builtGcsFetcherImage
resource: builtGcsFetcherImage