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

Delete source to image pipelines and tasks #1472

Merged
merged 1 commit into from
Oct 7, 2024
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
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ There is an option to push all bundles to a single quay.io repository (this meth
The pipelines can be found in the `pipelines` directory.

- `core-services`: contains pipelines for the CI of Konflux core services e.g., `application-service` and `build-service`.
- `template-build`: contains common template used to generate `docker-build`, `fbc-builder`, `java-builder` and `nodejs-builder` pipelines.
- `template-build`: contains common template used to generate `docker-build`, `fbc-builder` and other pipelines.

### Tasks

Expand Down Expand Up @@ -67,11 +67,11 @@ Buildah also has a remote version, which can be generated with:

### Prerequisites
- Provisioned cluster with sufficient resources
- Deployed Konflux on the cluster (see [infra-deployments](https://github.com/redhat-appstudio/infra-deployments))
- Deployed Konflux on the cluster (see [infra-deployments](https://github.com/redhat-appstudio/infra-deployments))

1. Set up the image repository
PipelineRuns attempt to push to cluster-internal registry `image-registry.openshift-image-registry.svc:5000` by default.
For testing, you will likely want to use your own Quay repository.
PipelineRuns attempt to push to cluster-internal registry `image-registry.openshift-image-registry.svc:5000` by default.
For testing, you will likely want to use your own Quay repository.
Specify the Quay repository using the `QUAY_NAMESPACE` environment variable in the format `OWNER/REPOSITORY_NAME`.
2. Set up the `redhat-appstudio-staginguser-pull-secret`
- Log in to `quay.io` using your credentials:
Expand All @@ -89,8 +89,8 @@ Specify the Quay repository using the `QUAY_NAMESPACE` environment variable in t
```
3. Run the tests

- To test a custom Git repository and pipeline, use `./hack/test-build.sh`.
- To test a custom Git repository and pipeline, use `./hack/test-build.sh`.

Usage example:
```
QUAY_NAMESPACE=OWNER/REPOSITORY_NAME ./hack/test-build.sh https://github.com/jduimovich/spring-petclinic java-builder`.
Expand All @@ -107,11 +107,11 @@ Specify the Quay repository using the `QUAY_NAMESPACE` environment variable in t
### Compliance

Task definitions must comply with the [Enterprise Contract](https://enterprisecontract.dev/) policies.
Currently, there are two policy configurations.
Currently, there are two policy configurations.
- The [all-tasks](./policies/all-tasks.yaml) policy
configuration applies to all Task definitions
configuration applies to all Task definitions
- The [build-tasks](./policies/build-tasks.yaml)
policy configuration applies only to build Task definitions.
policy configuration applies only to build Task definitions.

A build Task, i.e., one that produces a
container image, must abide by both policy configurations.
2 changes: 0 additions & 2 deletions hack/build-and-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,6 @@ do
[ "$pipeline_name" == "docker-build-oci-ta" ] && docker_oci_ta_pipeline_bundle=$pipeline_bundle
[ "$pipeline_name" == "docker-build-multi-platform-oci-ta" ] && docker_multi_platform_oci_ta_pipeline_bundle=$pipeline_bundle
[ "$pipeline_name" == "fbc-builder" ] && fbc_pipeline_bundle=$pipeline_bundle
[ "$pipeline_name" == "nodejs-builder" ] && nodejs_pipeline_bundle=$pipeline_bundle
[ "$pipeline_name" == "java-builder" ] && java_pipeline_bundle=$pipeline_bundle
if [ "$SKIP_DEVEL_TAG" == "" ] && is_official_repo "$QUAY_NAMESPACE" && [ -z "$TEST_REPO_NAME" ]; then
NEW_TAG="${pipeline_bundle%:*}:devel"
skopeo copy "docker://${pipeline_bundle}" "docker://${NEW_TAG}"
Expand Down
1 change: 1 addition & 0 deletions hack/generate-pipelines-readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def run(cmd):
failed = 0
except subprocess.CalledProcessError as e:
print(f"{cmd[0]} failed:\nSTDOUT:\n{e.stdout.decode()}\nSTDERR:\n{e.stderr.decode()}")
return "", "", failed
except FileNotFoundError:
print(f"command: {cmd[0]} doesn't exist")
return "", "", failed
Expand Down
2 changes: 0 additions & 2 deletions hack/test-builds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,5 @@ oc apply -k $SCRIPTDIR/../pipelines/ -o yaml --dry-run=client | \
bash -c "$(curl -fsSL https://raw.githubusercontent.com/redhat-appstudio/infra-deployments/main/hack/build/setup-namespace.sh)"

[ "$1" == "skip_checks" ] && export SKIP_CHECKS=1
$SCRIPTDIR/test-build.sh https://github.com/jduimovich/spring-petclinic java-builder
$SCRIPTDIR/test-build.sh https://github.com/jduimovich/single-nodejs-app nodejs-builder
$SCRIPTDIR/test-build.sh https://github.com/jduimovich/single-container-app docker-build
$SCRIPTDIR/test-build.sh https://github.com/Michkov/simple-fbc fbc-builder
280 changes: 0 additions & 280 deletions pipelines/java-builder/README.md

This file was deleted.

9 changes: 0 additions & 9 deletions pipelines/java-builder/kustomization.yaml

This file was deleted.

31 changes: 0 additions & 31 deletions pipelines/java-builder/patch.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions pipelines/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ resources:
- docker-build
- docker-build-oci-ta
- docker-build-multi-platform-oci-ta
- java-builder
- nodejs-builder
- enterprise-contract.yaml
- fbc-builder
- tekton-bundle-builder
Loading
Loading