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