https://github.com/nmasse-itix/tekton-pipeline-multiarch
https://github.com/nmasse-itix/tekton-pipeline-multiarch
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nmasse-itix/tekton-pipeline-multiarch
- Owner: nmasse-itix
- Created: 2024-03-15T13:20:08.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-02T20:36:54.000Z (about 1 year ago)
- Last Synced: 2025-02-12T11:16:21.259Z (4 months ago)
- Size: 85.9 KB
- Stars: 1
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Multi-architecture Tekton Pipeline
## Tekton configuration
```sh
oc patch configmap/feature-flags -n openshift-pipelines --type=merge -p '{"data":{"disable-affinity-assistant":"true"}}'
```## Setup on AWS
- [Install the AWS EFS CSI Driver Operator](https://docs.openshift.com/container-platform/4.15/storage/container_storage_interface/persistent-storage-csi-aws-efs.html#persistent-storage-csi-olm-operator-install_persistent-storage-csi-aws-efs)
- Install the AWS EFS CSI Driver
```yaml
apiVersion: operator.openshift.io/v1
kind: ClusterCSIDriver
metadata:
name: efs.csi.aws.com
spec:
managementState: Managed
```- [Create an EFS volume](https://docs.aws.amazon.com/efs/latest/ug/gs-step-two-create-efs-resources.html)
- Create the StorageClass
```yaml
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: efs-csi
provisioner: efs.csi.aws.com
parameters:
provisioningMode: efs-ap
fileSystemId: fs-123456
directoryPerms: "700"
basePath: "/pv"
uid: "0"
gid: "0"
```- [Create and configure access to EFS volumes in AWS](https://docs.openshift.com/container-platform/4.15/storage/container_storage_interface/persistent-storage-csi-aws-efs.html#efs-create-volume_persistent-storage-csi-aws-efs)
## Authentication to the registry
```sh
oc create secret docker-registry quay-authentication [email protected] --docker-username=nmasse --docker-password=REDACTED --docker-server=quay.io
oc annotate secret/quay-authentication tekton.dev/docker-0=https://quay.io
```## Pipeline manifests
```sh
oc apply -k tekton/
for yaml in examples/*/tekton/pipeline.yaml; do oc apply -f $yaml; done
```## Run it!
```sh
for yaml in examples/*/tekton/pipelinerun.yaml; do oc create -f $yaml; done
```