Created
June 4, 2020 16:44
-
-
Save dibyom/038c9ae01fff69606976971cdb6c4102 to your computer and use it in GitHub Desktop.
base-image
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
apiVersion: tekton.dev/v1alpha1 | |
kind: PipelineResource | |
metadata: | |
name: tekton-pipelines-git | |
spec: | |
type: git | |
params: | |
- name: url | |
value: https://github.com/tektoncd/pipeline | |
- name: revision | |
value: master # REPLACE with the commit you want to release | |
--- | |
apiVersion: tekton.dev/v1alpha1 | |
kind: PipelineResource | |
metadata: | |
name: base-image | |
spec: | |
type: image | |
params: | |
- name: url | |
value: build-base # Registry is provided via parameter, this is a hack see #569 | |
--- | |
apiVersion: tekton.dev/v1beta1 | |
kind: Task | |
metadata: | |
name: publish-tekton-pipelines | |
namespace: default | |
spec: | |
params: | |
- 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 | |
name: imageRegistry | |
type: string | |
- description: The path to the folder in the go/src dir that contains the project, | |
which is used by `ko` to name the resulting images | |
name: pathToProject | |
type: string | |
default: github.com/tektoncd/pipeline | |
resources: | |
inputs: | |
- name: source | |
targetPath: go/src/github.com/tektoncd/pipeline | |
type: git | |
outputs: | |
- name: builtBaseImage | |
type: image | |
steps: | |
- name: build-push-base-images | |
args: | |
- --dockerfile=/workspace/go/src/github.com/tektoncd/pipeline/images/Dockerfile | |
- --destination=$(params.imageRegistry)/$(params.pathToProject)/$(resources.outputs.builtBaseImage.url) | |
- --context=/workspace/go/src/github.com/tektoncd/pipeline | |
command: | |
- /kaniko/executor | |
env: | |
- name: GOOGLE_APPLICATION_CREDENTIALS | |
value: /secret/release.json | |
image: gcr.io/kaniko-project/executor:v0.17.1 | |
resources: {} | |
volumeMounts: | |
- mountPath: /secret | |
name: gcp-secret | |
volumes: | |
- name: gcp-secret | |
secret: | |
secretName: release-secret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment