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

Finished setting up the OpenShift cluster #128

Merged
merged 4 commits into from
Apr 29, 2024
Merged
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
99 changes: 99 additions & 0 deletions .tekton/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ spec:
description: Name of the application
name: APP_NAME
type: string
- default: "image-registry.openshift-image-registry.svc:5000/$(context.pipelineRun.namespace)/$(params.APP_NAME):latest"
description: The name of the image to build
name: IMAGE_NAME
type: string
tasks:
- name: git-clone
params:
Expand Down Expand Up @@ -57,5 +61,100 @@ spec:
workspaces:
- name: output
workspace: shopcarts-pipeline-workspace
- name: test
params:
- name: PYTEST_ARGS
value: []
- name: SECRET_NAME
value: postgres-creds
- name: SECRET_KEY
value: database_uri
runAfter:
- git-clone
taskRef:
kind: Task
name: pytest-env
workspaces:
- name: source
workspace: shopcarts-pipeline-workspace
- name: buildah
params:
- name: IMAGE
value: $(params.IMAGE_NAME)
- name: BUILDER_IMAGE
value: "registry.redhat.io/rhel8/buildah@sha256:b48f410efa0ff8ab0db6ead420a5d8d866d64af846fece5efb185230d7ecf591"
- name: STORAGE_DRIVER
value: vfs
- name: DOCKERFILE
value: ./Dockerfile
- name: CONTEXT
value: .
- name: TLSVERIFY
value: "true"
- name: FORMAT
value: oci
- name: BUILD_EXTRA_ARGS
value: ""
- name: PUSH_EXTRA_ARGS
value: ""
- name: SKIP_PUSH
value: "false"
runAfter:
- test
- pylint
taskRef:
kind: ClusterTask
name: buildah
workspaces:
- name: source
workspace: shopcarts-pipeline-workspace
- name: pylint
params:
- name: image
value: "docker.io/python:3.11-slim"
- name: path
value: service
- name: args
value: []
- name: requirements_file
value: requirements.txt
runAfter:
- git-clone
taskRef:
kind: Task
name: pylint
workspaces:
- name: source
workspace: shopcarts-pipeline-workspace
- name: deploy-image
params:
- name: image_name
value: $(params.IMAGE_NAME)
- name: manifest_dir
value: k8s
runAfter:
- buildah
taskRef:
kind: Task
name: deploy-image
workspaces:
- name: source
workspace: shopcarts-pipeline-workspace
- name: behave
params:
- name: BASE_URL
value: "https://shopcarts-whykay-01-dev.apps.sandbox-m4.g2pi.p1.openshiftapps.com"
- name: WAIT_SECONDS
value: "60"
- name: DRIVER
value: chrome
runAfter:
- deploy-image
taskRef:
kind: Task
name: behave
workspaces:
- name: source
workspace: shopcarts-pipeline-workspace
workspaces:
- name: shopcarts-pipeline-workspace
Loading