diff --git a/dp_np.yaml b/dp_np.yaml
new file mode 100644
index 0000000..bf4c91b
--- /dev/null
+++ b/dp_np.yaml
@@ -0,0 +1,35 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: tekton-demo-deployment
+ namespace: tekton-demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: tekton-demo
+ template:
+ metadata:
+ labels:
+ app: tekton-demo
+ spec:
+ containers:
+ - name: tekton-demo
+ image: harbor.icurfer.com/open/tekton-demo:latest
+ imagePullPolicy: Always
+ ports:
+ - containerPort: 80
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: tekton-demo-service
+ namespace: tekton-demo
+spec:
+ type: NodePort
+ selector:
+ app: tekton-demo
+ ports:
+ - protocol: TCP
+ port: 80
+ targetPort: 80
\ No newline at end of file
diff --git a/index.html b/index.html
index 8d87e42..30851f5 100644
--- a/index.html
+++ b/index.html
@@ -1,11 +1,62 @@
-
+
+
+
Tekton Demo
+
- β
Hello Tekton CI/CD!
- This page is built automatically using Tekton Pipeline.
+
+
π
+
β
Hello Tekton CI/CD!
+
Your application has been successfully built and deployed using Tekton Pipeline.
+
Learn More
+
-
diff --git a/sample-build/02-task-build.yaml b/sample-build/02-task-build.yaml
index 45a8c34..2003370 100644
--- a/sample-build/02-task-build.yaml
+++ b/sample-build/02-task-build.yaml
@@ -36,46 +36,8 @@ spec:
git checkout $(params.git-revision)
echo "==== [INFO] Git checkout μλ£ ===="
- # 2. Secret νμΌ config.json μΌλ‘ λ³ν
- # - name: prepare-docker-config
- # image: alpine
- # script: |
- # #!/bin/sh
- # set -e
- # echo "==== [INFO] Docker config νμΌ μ€λΉ ===="
- # ls -al /workspace/docker-config
- # if [ -f /workspace/docker-config/.dockerconfigjson ]; then
- # cat /workspace/docker-config/.dockerconfigjson
- # else
- # echo "[ERROR] Docker config νμΌ(.dockerconfigjson) μμ"
- # fi
- # - name: prepare-docker-config
- # image: stedolan/jq
- # script: |
- # #!/bin/sh
- # set -e
- # echo "==== [INFO] Docker config νμΌ μ€λΉ ===="
- # ls -al /workspace/docker-config
- # # μμ μ°κΈ° κ°λ₯ κ²½λ‘ μμ±
- # mkdir -p /workspace/tmp-config
-
- # if [ -f /workspace/docker-config/.dockerconfigjson ]; then
- # echo "[INFO] dockerconfigjson λ΄μ© μ½κΈ°"
- # cat /workspace/docker-config/.dockerconfigjson | jq . > /workspace/tmp-config/config.json
- # echo "[INFO] config.json λ³ν μλ£"
- # else
- # echo "[ERROR] Docker config νμΌ(.dockerconfigjson) μμ"
- # fi
- # 3. Debugging - Check mounted secret before build
- # - name: debug-sleep
- # image: alpine
- # script: |
- # #!/bin/sh
- # echo "==== [DEBUG] Podμ μ μ κ°λ₯ μνλ‘ λκΈ° μ€... ===="
- # sleep 180
-
- # 4. Kaniko Build & Push
+ # Kaniko Build & Push
- name: build-and-push
image: gcr.io/kaniko-project/executor:latest
volumeMounts:
@@ -83,9 +45,6 @@ spec:
mountPath: /kaniko/.docker/config.json
subPath: .dockerconfigjson
readOnly: true
- # env:
- # - name: DOCKER_CONFIG
- # value: /workspace/docker-config
args:
- --dockerfile=/workspace/source/Dockerfile
- --context=/workspace/source