diff --git a/images/Dockerfile_ansible-podman b/images/Dockerfile_ansible-podman deleted file mode 100644 index 5848b0f..0000000 --- a/images/Dockerfile_ansible-podman +++ /dev/null @@ -1,4 +0,0 @@ -FROM quay.io/podman/stable:v4.2.1 - -RUN dnf update && \ - dnf install -y ansible git \ No newline at end of file diff --git a/images/Dockerfile_buildah b/images/Dockerfile_buildah deleted file mode 100644 index b557b05..0000000 --- a/images/Dockerfile_buildah +++ /dev/null @@ -1,6 +0,0 @@ -FROM quay.io/buildah/upstream:latest - -# Add skopeo. -RUN dnf install -y skopeo \ - --exclude container-selinux \ - --enablerepo=updates-testing \ No newline at end of file diff --git a/images/Dockerfile_gitssh b/images/Dockerfile_gitssh deleted file mode 100644 index 95f6341..0000000 --- a/images/Dockerfile_gitssh +++ /dev/null @@ -1,6 +0,0 @@ -FROM docker.io/debian:bullseye-slim - -RUN apt update -y && \ - apt install -y \ - git \ - openssh-client \ No newline at end of file diff --git a/images/Dockerfile_j7s-image-build b/images/Dockerfile_j7s-image-build deleted file mode 100644 index 019c52a..0000000 --- a/images/Dockerfile_j7s-image-build +++ /dev/null @@ -1,9 +0,0 @@ -FROM quay.io/centos/centos:stream9 -RUN dnf install -y 'dnf-command(copr)' && \ - dnf copr enable -y @osbuild/osbuild && \ - dnf install -y osbuild osbuild-tools osbuild-ostree make sudo git -RUN useradd -m -G wheel -s /bin/bash -u 1000 j7s && \ - bash -c 'echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/container' && \ - chmod 0440 /etc/sudoers.d/container -USER j7s -ENTRYPOINT ["bash"] \ No newline at end of file diff --git a/images/Dockerfile_vcs b/images/Dockerfile_vcs deleted file mode 100644 index 21a8e2b..0000000 --- a/images/Dockerfile_vcs +++ /dev/null @@ -1,10 +0,0 @@ -FROM docker.io/debian:bullseye-slim - -RUN apt update -y && \ - apt install -y curl -RUN curl -s https://packagecloud.io/install/repositories/dirk-thomas/vcstool/script.deb.sh | bash -RUN apt update -y && \ - apt install -y \ - git \ - openssh-client \ - python3-vcstool \ No newline at end of file diff --git a/namespaces/harbor.yaml b/namespaces/harbor.yaml deleted file mode 100644 index 0a27fb7..0000000 --- a/namespaces/harbor.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: harbor diff --git a/namespaces/j7s-ci.yaml b/namespaces/j7s-ci.yaml deleted file mode 100644 index 9047d8e..0000000 --- a/namespaces/j7s-ci.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: j7s-ci diff --git a/namespaces/nfs-subdir-external-provisioner.yaml b/namespaces/nfs-subdir-external-provisioner.yaml deleted file mode 100644 index cb6386d..0000000 --- a/namespaces/nfs-subdir-external-provisioner.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: nfs-subdir-external-provisioner diff --git a/pipelines/dev-contain-pipeline.yaml b/pipelines/dev-contain-pipeline.yaml deleted file mode 100644 index 1a4003b..0000000 --- a/pipelines/dev-contain-pipeline.yaml +++ /dev/null @@ -1,55 +0,0 @@ -# A pipeline to build and deploy dev_contain packages. -# Steps: -# Clone the dev_contain repo from gitea and checkout packaging branch. -# Call ansible play to build. -# Optionally, call play to deploy ---- -apiVersion: tekton.dev/v1beta1 -kind: Pipeline -metadata: - name: dev-contain-pipeline - namespace: j7s-ci -spec: - description: "Build and deploy dev_contain packages." - params: - - name: branch - type: string - description: The branch in the repo to call the build script in. - - name: deploy - type: string - description: "'true' if we should deploy the image using ansible." - workspaces: - - name: shared-data - description: Shared data. - - name: git-credentials - description: tekton git credentials - - name: deploy-credentials - description: tekton credentials to deployment server - tasks: - - name: fetch-repo - workspaces: - - name: output - workspace: shared-data - - name: ssh-directory - workspace: git-credentials - params: - - name: url - value: ssh://git@git.jpace121.net:2222/packaging/dev_contain - - name: branch - value: $(params.branch) - taskRef: - name: j7s-git-clone - - name: build - runAfter: ["fetch-repo"] - workspaces: - - name: source - workspace: shared-data - - name: ssh-directory - workspace: deploy-credentials - params: - - name: deploy - value: $(params.deploy) - - name: ansible-file-path - value: . - taskRef: - name: j7s-ansible-build \ No newline at end of file diff --git a/pipelines/j7s-os-pipeline.yaml b/pipelines/j7s-os-pipeline.yaml deleted file mode 100644 index 48d4088..0000000 --- a/pipelines/j7s-os-pipeline.yaml +++ /dev/null @@ -1,79 +0,0 @@ -# A pipeline to build j7s-os images. -# Steps: -# Clone the j7s-os repo from onedev. -# Call make <> in the repo. -# Build and push a new deployment container. -# Deploy the deployment container as a service. ---- -apiVersion: tekton.dev/v1beta1 -kind: Pipeline -metadata: - name: j7s-os-pipeline - namespace: j7s-ci -spec: - description: Build and deploy j7s-os images. - params: - - name: make-image-name - type: string - description: The name of image to make in the os repo. - - name: branch - type: string - default: main - description: branch of j7s-os image to build. - workspaces: - - name: shared-data - description: Shared data. - - name: git-credentials - description: My ssh credentials - tasks: - - name: fetch-repo - workspaces: - - name: output - workspace: shared-data - - name: ssh-directory - workspace: git-credentials - params: - - name: url - value: ssh://git@git.jpace121.net:2222/public/j7s-os - - name: branch - value: $(params.branch) - taskRef: - name: j7s-git-clone - - name: image-build - runAfter: ["fetch-repo"] - workspaces: - - name: source - workspace: shared-data - params: - - name: image-name - value: $(params.make-image-name) - taskRef: - name: j7s-os-image-build - - name: build-deploy-image - runAfter: ["image-build"] - workspaces: - - name: source - workspace: shared-data - params: - - name: commit - value: $(params.make-image-name) - - name: image - value: j7s-os-deploy - - name: registry - value: 192.168.1.149:8443 - - name: version - value: $(tasks.image-build.results.version-string) - taskRef: - name: j7s-os-buildah - - name: deploy-image - runAfter: ["build-deploy-image"] - workspaces: - - name: ssh-directory - workspace: git-credentials - params: - - name: image - value: 192.168.1.149:8443/j7s-os-deploy - - name: version - value: $(tasks.image-build.results.version-string) - taskRef: - name: j7s-os-k8s-deploy \ No newline at end of file diff --git a/pipelines/ostree-package-pipeline.yaml b/pipelines/ostree-package-pipeline.yaml deleted file mode 100644 index 425120d..0000000 --- a/pipelines/ostree-package-pipeline.yaml +++ /dev/null @@ -1,48 +0,0 @@ -# A pipeline to build and deploy my fork of the debian packaging for ostree. ---- -apiVersion: tekton.dev/v1beta1 -kind: Pipeline -metadata: - name: ostree-package-pipeline - namespace: j7s-ci -spec: - description: "Package fork of ostree." - params: - - name: deploy - type: string - description: "'true' if we should deploy the image using ansible." - workspaces: - - name: shared-data - description: Shared data. - - name: git-credentials - description: tekton git credentials - - name: deploy-credentials - description: tekton credentials to deployment server - tasks: - - name: fetch-repo - workspaces: - - name: output - workspace: shared-data - - name: ssh-directory - workspace: git-credentials - params: - - name: url - value: ssh://git.jpace121.net:2222/packaging/ostree - - name: branch - value: jamesp/latest - taskRef: - name: j7s-git-clone - - name: build - runAfter: ["fetch-repo"] - workspaces: - - name: source - workspace: shared-data - - name: ssh-directory - workspace: deploy-credentials - params: - - name: deploy - value: $(params.deploy) - - name: ansible-file-path - value: ./j7s-build-files - taskRef: - name: j7s-ansible-build \ No newline at end of file diff --git a/pipelines/simple-ros-pipeline.yaml b/pipelines/simple-ros-pipeline.yaml deleted file mode 100644 index 735a8f1..0000000 --- a/pipelines/simple-ros-pipeline.yaml +++ /dev/null @@ -1,63 +0,0 @@ -# A pipeline to build the simple ros test containers. ---- -apiVersion: tekton.dev/v1beta1 -kind: Pipeline -metadata: - name: simple-ros-pipeline - namespace: j7s-ci -spec: - description: Build a image with a simple ros image. - workspaces: - - name: shared-data - - name: git-credentials - - name: cosign-credentials - tasks: - - name: ros-clone - workspaces: - - name: output - workspace: shared-data - - name: ssh-directory - workspace: git-credentials - params: - - name: url - value: ssh://git.jpace121.net:2222/tests/j7s-simple-ws - - name: branch - value: master - - name: repos-file - value: source.repos - taskRef: - name: j7s-ros-clone - - name: image-build - runAfter: ["ros-clone"] - workspaces: - - name: source - workspace: shared-data - - name: cosign-credentials - workspace: cosign-credentials - params: - - name: registry - value: 192.168.1.149:8443 - - name: name - value: simple-ros - - name: version - value: 0.1 - - name: containerfile - value: ./docker/Dockerfile - taskRef: - name: j7s-buildah - results: - - name: image-ARTIFACT_OUTPUTS - type: object - value: - uri: $(tasks.image-build.results.image-ARTIFACT_OUTPUTS.uri) - digest: $(tasks.image-build.results.image-ARTIFACT_OUTPUTS.digest) - - name: commit-ARTIFACT_INPUTS - type: object - value: - uri: $(tasks.ros-clone.results.workspace-git-commit-ARTIFACT_OUTPUTS.uri) - digest: $(tasks.ros-clone.results.workspace-git-commit-ARTIFACT_OUTPUTS.digest) - - name: vcs-exact-file-ARTIFACT_INPUTS - type: object - value: - uri: $(tasks.ros-clone.results.vcs-exact-file-ARTIFACT_OUTPUTS.uri) - digest: $(tasks.ros-clone.results.vcs-exact-file-ARTIFACT_OUTPUTS.digest) \ No newline at end of file diff --git a/pipelines/test-pipeline.yaml b/pipelines/test-pipeline.yaml deleted file mode 100644 index 19c527c..0000000 --- a/pipelines/test-pipeline.yaml +++ /dev/null @@ -1,60 +0,0 @@ -# A pipeline to test the infrasture around calling pipelines. ---- -apiVersion: tekton.dev/v1beta1 -kind: Pipeline -metadata: - name: test-pipeline - namespace: j7s-ci -spec: - description: "A test pipeline." - workspaces: - - name: shared-data - description: Shared data. - - name: git-credentials - description: tekton git credentials - params: - - name: pr-id - description: ID number of the current PR. - tasks: - - name: fetch-repo - workspaces: - - name: output - workspace: shared-data - - name: ssh-directory - workspace: git-credentials - params: - - name: url - value: ssh://git.jpace121.net:2222/tests/job-test - - name: branch - value: master - taskRef: - name: j7s-git-clone - - name: cat-readme - runAfter: ["fetch-repo"] - workspaces: - - name: source - workspace: shared-data - taskSpec: - workspaces: - - name: source - steps: - - image: docker.io/debian:bullseye-slim - script: | - set -x - cat $(workspaces.source.path)/README.md - exit 0 - finally: - - name: notify-onedev - params: - - name: tekton-login-secret-name - value: onedev-api-key - - name: feedback-url - value: https://git.jpace121.net/ - - name: pr-id - value: $(params.pr-id) - - name: run-name - value: $(context.pipelineRun.name) - - name: status - value: $(tasks.status) - taskRef: - name: j7s-onedev-pr-review diff --git a/pipelines/test-report-pipeline.yaml b/pipelines/test-report-pipeline.yaml deleted file mode 100644 index 1247d89..0000000 --- a/pipelines/test-report-pipeline.yaml +++ /dev/null @@ -1,60 +0,0 @@ -# A pipeline to test the infrasture around calling pipelines. ---- -apiVersion: tekton.dev/v1beta1 -kind: Pipeline -metadata: - name: test-report-pipeline - namespace: j7s-ci -spec: - description: "A test pipeline." - workspaces: - - name: shared-data - description: Shared data. - - name: git-credentials - description: tekton git credentials - params: - - name: hash - default: HEAD - tasks: - - name: fetch-repo - workspaces: - - name: output - workspace: shared-data - - name: ssh-directory - workspace: git-credentials - params: - - name: url - value: ssh://git.jpace121.net:2222/tests/job-test - - name: hash - value: $(params.hash) - taskRef: - name: j7s-git-clone-hash - - name: cat-readme - runAfter: ["fetch-repo"] - workspaces: - - name: source - workspace: shared-data - taskSpec: - workspaces: - - name: source - steps: - - image: docker.io/debian:bullseye-slim - script: | - set -x - cat $(workspaces.source.path)/README.md - exit 0 - finally: - - name: notify-onedev - params: - - name: tekton-login-secret-name - value: onedev-api-key - - name: feedback-url - value: https://git.jpace121.net/ - - name: project-id - value: 9 - - name: run-name - value: $(context.pipelineRun.name) - - name: status - value: $(tasks.status) - taskRef: - name: j7s-onedev-file-bug diff --git a/runs/dev-contain-debian.yaml b/runs/dev-contain-debian.yaml deleted file mode 100644 index c35c45e..0000000 --- a/runs/dev-contain-debian.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: tekton.dev/v1beta1 -kind: PipelineRun -metadata: - generateName: dev-contain-debian- - namespace: j7s-ci -spec: - pipelineRef: - name: dev-contain-pipeline - workspaces: - - name: shared-data - volumeClaimTemplate: - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi - - name: git-credentials - secret: - secretName: git-credentials - - name: deploy-credentials - secret: - secretName: deploy-credentials - params: - - name: branch - value: "packaging/debian" - - name: deploy - value: "true" \ No newline at end of file diff --git a/runs/dev-contain-rpm.yaml b/runs/dev-contain-rpm.yaml deleted file mode 100644 index fd88a8f..0000000 --- a/runs/dev-contain-rpm.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: tekton.dev/v1beta1 -kind: PipelineRun -metadata: - generateName: dev-contain-rpm- - namespace: j7s-ci -spec: - pipelineRef: - name: dev-contain-pipeline - workspaces: - - name: shared-data - volumeClaimTemplate: - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi - - name: git-credentials - secret: - secretName: git-credentials - - name: deploy-credentials - secret: - secretName: deploy-credentials - params: - - name: branch - value: "packaging/fedora" - - name: deploy - value: "true" \ No newline at end of file diff --git a/runs/j7s-os-test.yaml b/runs/j7s-os-test.yaml deleted file mode 100644 index a1e0d03..0000000 --- a/runs/j7s-os-test.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: tekton.dev/v1beta1 -kind: PipelineRun -metadata: - generateName: j7s-os-test- - namespace: j7s-ci -spec: - pipelineRef: - name: j7s-os-pipeline - workspaces: - - name: shared-data - volumeClaimTemplate: - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 3Gi - - name: git-credentials - secret: - secretName: git-credentials - params: - - name: make-image-name - value: cs9-qemu-minimal-ostree.x86_64.repo - - name: branch - value: main \ No newline at end of file diff --git a/runs/j7s-ros-clone.yaml b/runs/j7s-ros-clone.yaml deleted file mode 100644 index 0f4492a..0000000 --- a/runs/j7s-ros-clone.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: tekton.dev/v1beta1 -kind: TaskRun -metadata: - generateName: j7s-ros-clone- - namespace: j7s-ci -spec: - taskRef: - name: j7s-ros-clone - workspaces: - - name: output - volumeClaimTemplate: - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 0.5Gi - - name: ssh-directory - secret: - secretName: git-credentials - params: - - name: url - value: "ssh://git.jpace121.net:2222/tests/j7s-simple-ws" - - name: branch - value: "master" - - name: repos-file - value: source.repos \ No newline at end of file diff --git a/runs/ostree-package.yaml b/runs/ostree-package.yaml deleted file mode 100644 index 3a65be4..0000000 --- a/runs/ostree-package.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: tekton.dev/v1beta1 -kind: PipelineRun -metadata: - generateName: ostree-package- - namespace: j7s-ci -spec: - pipelineRef: - name: ostree-package-pipeline - workspaces: - - name: shared-data - volumeClaimTemplate: - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi - - name: git-credentials - secret: - secretName: git-credentials - - name: deploy-credentials - secret: - secretName: deploy-credentials - params: - - name: deploy - value: "true" \ No newline at end of file diff --git a/runs/simple-ros-pipeline.yaml b/runs/simple-ros-pipeline.yaml deleted file mode 100644 index 00b5509..0000000 --- a/runs/simple-ros-pipeline.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: tekton.dev/v1beta1 -kind: PipelineRun -metadata: - generateName: simple-ros-pipeline- - namespace: j7s-ci -spec: - pipelineRef: - name: simple-ros-pipeline - workspaces: - - name: shared-data - volumeClaimTemplate: - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi - - name: git-credentials - secret: - secretName: git-credentials - - name: cosign-credentials - secret: - secretName: container-signing-secret \ No newline at end of file diff --git a/runs/test-report-pipeline.yaml b/runs/test-report-pipeline.yaml deleted file mode 100644 index 9e593aa..0000000 --- a/runs/test-report-pipeline.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: tekton.dev/v1beta1 -kind: PipelineRun -metadata: - generateName: test-report-pipeline- - namespace: j7s-ci -spec: - pipelineRef: - name: test-report-pipeline - workspaces: - - name: shared-data - volumeClaimTemplate: - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi - - name: git-credentials - secret: - secretName: git-credentials \ No newline at end of file