Skip to content

Commit

Permalink
chore: Jenkins X build pack
Browse files Browse the repository at this point in the history
  • Loading branch information
msvticket committed Jan 15, 2024
1 parent b9623d6 commit 5adb1f2
Show file tree
Hide file tree
Showing 22 changed files with 206 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions .lighthouse/jenkins-x/pullrequest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
creationTimestamp: null
name: pullrequest
spec:
pipelineSpec:
tasks:
- name: from-build-pack
resources: {}
taskSpec:
metadata: {}
stepTemplate:
image: uses:jenkins-x/jx3-pipeline-catalog/tasks/go/pullrequest.yaml@versionStream
name: ""
resources:
# override limits for all containers here
limits: {}
workingDir: /workspace/source
steps:
- image: uses:jenkins-x/jx3-pipeline-catalog/tasks/git-clone/git-clone-pr.yaml@versionStream
name: ""
resources: {}
- name: jx-variables
resources:
# override requests for the pod here
requests:
cpu: 400m
memory: 600Mi
- name: build-make-linux
resources: {}
- name: check-registry
resources: {}
- name: build-container-build
resources: {}
- name: promote-jx-preview
resources: {}
podTemplate: {}
serviceAccountName: tekton-bot
timeout: 12h0m0s
status: {}
47 changes: 47 additions & 0 deletions .lighthouse/jenkins-x/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
creationTimestamp: null
name: release
spec:
pipelineSpec:
tasks:
- name: from-build-pack
resources: {}
taskSpec:
metadata: {}
stepTemplate:
image: uses:jenkins-x/jx3-pipeline-catalog/tasks/go/release.yaml@versionStream
name: ""
resources:
# override limits for all containers here
limits: {}
workingDir: /workspace/source
steps:
- image: uses:jenkins-x/jx3-pipeline-catalog/tasks/git-clone/git-clone.yaml@versionStream
name: ""
resources: {}
- name: next-version
resources: {}
- name: jx-variables
resources:
# override requests for the pod here
requests:
cpu: 400m
memory: 600Mi
- name: build-make-build
resources: {}
- name: check-registry
resources: {}
- name: build-container-build
resources: {}
- name: promote-changelog
resources: {}
- name: promote-helm-release
resources: {}
- name: promote-jx-promote
resources: {}
podTemplate: {}
serviceAccountName: tekton-bot
timeout: 12h0m0s
status: {}
16 changes: 16 additions & 0 deletions .lighthouse/jenkins-x/triggers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: config.lighthouse.jenkins-x.io/v1alpha1
kind: TriggerConfig
spec:
presubmits:
- name: pr
context: "pr"
always_run: true
optional: false
source: "pullrequest.yaml"
postsubmits:
- name: release
context: "release"
source: "release.yaml"
branches:
- ^main$
- ^master$
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM scratch
EXPOSE 8080
ENTRYPOINT ["/cert-secret-syncer"]
COPY ./bin/ /
Empty file added Makefile
Empty file.
4 changes: 4 additions & 0 deletions OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
approvers:
- maintainers
reviewers:
- maintainers
2 changes: 2 additions & 0 deletions OWNERS_ALIASES
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
foreignAliases:
- name: users
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions preview/Kptfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kpt.dev/v1alpha1
kind: Kptfile
metadata:
name: preview
upstream:
type: git
git:
commit: b52b35506a05e046d54615c3ade97f3aef8bfb08
repo: https://github.com/jenkins-x/jx3-pipeline-catalog
directory: /helm/preview
ref: master
34 changes: 34 additions & 0 deletions preview/helmfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
environments:
default:
values:
- jx-values.yaml
helmDefaults:
# time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks, and waits on pod/pvc/svc/deployment readiness) (default 300)
timeout: 600
repositories:
- name: jx3
url: https://jenkins-x-charts.github.io/repo
releases:
- chart: jx3/jx-verify
name: jx-verify
namespace: '{{ requiredEnv "PREVIEW_NAMESPACE" }}'
- chart: '../charts/{{ requiredEnv "APP_NAME" }}'
name: preview
wait: true
createNamespace: true
namespace: '{{ requiredEnv "PREVIEW_NAMESPACE" }}'
values:
- jx-values.yaml
- values.yaml.gotmpl
hooks:
- events: ["presync"]
showlogs: true
command: "jx"
args:
- secret
- copy
- --create-namespace
- --selector
- "secret.jenkins-x.io/replica-source=true"
- --to
- '{{ requiredEnv "PREVIEW_NAMESPACE" }}'
8 changes: 8 additions & 0 deletions preview/values.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
jxRequirements:
ingress:
namespaceSubDomain: "-pr{{ requiredEnv "PULL_NUMBER" }}."

image:
repository: "{{ requiredEnv "DOCKER_REGISTRY" }}/{{ requiredEnv "DOCKER_REGISTRY_ORG" }}/{{ requiredEnv "APP_NAME" }}"
tag: "{{ requiredEnv "VERSION" }}"
pullPolicy: "Always"

0 comments on commit 5adb1f2

Please sign in to comment.