This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM k8s.gcr.io/kustomize/kustomize:v3.8.7 | |
| RUN apk update && apk add --no-cache git | |
| COPY entrypoint.sh /entrypoint.sh | |
| RUN chmod +x /entrypoint.sh | |
| ENTRYPOINT ["/entrypoint.sh"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Update Kustomize Image" | |
| description: "Updates a Kubernetes image reference in a kustomization.yaml file and commits the change." | |
| inputs: | |
| path: | |
| description: "Path to the directory containing the kustomization.yaml file." | |
| required: true | |
| new-image-service: | |
| description: "The logical name of the image as referenced in Kustomize (the key before =)." | |
| required: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -euo pipefail | |
| # Usage: script.sh <path> <image_name> <image_repo> <version> | |
| if [ "$#" -ne 4 ]; then | |
| echo "Usage: $0 <path> <image_name> <image_repo> <version>" | |
| exit 1 | |
| fi | |
| TARGET_DIR="$1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: kustomize.config.k8s.io/v1beta1 | |
| kind: Kustomization | |
| namespace: services | |
| resources: | |
| - ingress.yaml | |
| - deployment.yaml | |
| images: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: kustomize.config.k8s.io/v1beta1 | |
| kind: Kustomization | |
| resources: | |
| - ./apps/simple-api/prod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to Prod K8S Env | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| name: Deploy Environment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build artifacts and deploy to the Infrastructure Repo Stack | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| build: | |
| name: Build Image | |
| runs-on: ubuntu-latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: tekton.dev/v1alpha1 | |
| kind: TaskRun | |
| metadata: | |
| name: nodejs-taskrun | |
| spec: | |
| inputs: | |
| resources: | |
| - name: nuxt-repo | |
| resourceRef: | |
| name: nuxt-repo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type TaskSpec struct { | |
| // Inputs is an optional set of parameters and resources which must be | |
| // supplied by the user when a Task is executed by a TaskRun. | |
| // +optional | |
| Inputs *Inputs `json:"inputs,omitempty"` | |
| // Outputs is an optional set of resources and results produced when this | |
| // Task is run. | |
| // +optional | |
| Outputs *Outputs `json:"outputs,omitempty"` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: tekton.dev/v1alpha1 | |
| kind: Task | |
| metadata: | |
| name: nodejs-ci | |
| spec: | |
| inputs: | |
| resources: | |
| - name: nuxt-repo | |
| type: git | |
| steps: |
NewerOlder