From da6925b0c3573bb21a85f6ab564e680221801472 Mon Sep 17 00:00:00 2001 From: Daksh Date: Thu, 14 Apr 2022 18:11:10 +0530 Subject: [PATCH 1/6] Create manual.yml --- .github/workflows/manual.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/manual.yml diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml new file mode 100644 index 0000000..47f24e1 --- /dev/null +++ b/.github/workflows/manual.yml @@ -0,0 +1,30 @@ +# This is a basic workflow that is manually triggered + +name: Manual workflow + +# Controls when the action will run. Workflow runs when manually triggered using the UI +# or API. +on: + workflow_dispatch: + # Inputs the workflow accepts. + inputs: + name: + # Friendly description to be shown in the UI instead of 'name' + description: 'Person to greet' + # Default value if no value is explicitly provided + default: 'World' + # Input has to be provided for the workflow to run + required: true + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "greet" + greet: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Runs a single command using the runners shell + - name: Send greeting + run: echo "Hello ${{ github.event.inputs.name }}" From e4fee3cb9deef9e006b4a3f9d08c7c562a932a58 Mon Sep 17 00:00:00 2001 From: Daksh Date: Mon, 13 Jun 2022 08:12:23 +0530 Subject: [PATCH 2/6] Update README.md --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cd9aa0a..f328019 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,10 @@ [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/DakshCodess/super-mario-bros/graphs/commit-activity) +## Views +

- +
## TECH @@ -27,3 +29,10 @@ + +## Trophy +
+

Trophies

+ + Trophy +
From e627f7371a5cba9dcfe3b6c9dc2ad245d1ddee75 Mon Sep 17 00:00:00 2001 From: Daksh Date: Mon, 13 Jun 2022 08:13:08 +0530 Subject: [PATCH 3/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f328019..772a079 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ -## Trophy +

Trophies

From 2f83b5801a1e8525aa8736588d812fa831deb446 Mon Sep 17 00:00:00 2001 From: Daksh Date: Mon, 13 Jun 2022 08:14:27 +0530 Subject: [PATCH 4/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 772a079..e865ee4 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,6 @@

Trophies

- + Trophy
From 7083204bdf15f3c68f713aecac2227b482b7261b Mon Sep 17 00:00:00 2001 From: Daksh Date: Sun, 26 Feb 2023 23:43:50 +0530 Subject: [PATCH 5/6] Create tencent.yml Signed-off-by: Daksh --- .github/workflows/tencent.yml | 79 +++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 .github/workflows/tencent.yml diff --git a/.github/workflows/tencent.yml b/.github/workflows/tencent.yml new file mode 100644 index 0000000..49c0467 --- /dev/null +++ b/.github/workflows/tencent.yml @@ -0,0 +1,79 @@ +# This workflow will build a docker container, publish and deploy it to Tencent Kubernetes Engine (TKE) when there is a push to the "main" branch. +# +# To configure this workflow: +# +# 1. Ensure that your repository contains the necessary configuration for your Tencent Kubernetes Engine cluster, +# including deployment.yml, kustomization.yml, service.yml, etc. +# +# 2. Set up secrets in your workspace: +# - TENCENT_CLOUD_SECRET_ID with Tencent Cloud secret id +# - TENCENT_CLOUD_SECRET_KEY with Tencent Cloud secret key +# - TENCENT_CLOUD_ACCOUNT_ID with Tencent Cloud account id +# - TKE_REGISTRY_PASSWORD with TKE registry password +# +# 3. Change the values for the TKE_IMAGE_URL, TKE_REGION, TKE_CLUSTER_ID and DEPLOYMENT_NAME environment variables (below). + +name: Tencent Kubernetes Engine + +on: + push: + branches: [ "main" ] + +# Environment variables available to all jobs and steps in this workflow +env: + TKE_IMAGE_URL: ccr.ccs.tencentyun.com/demo/mywebapp + TKE_REGION: ap-guangzhou + TKE_CLUSTER_ID: cls-mywebapp + DEPLOYMENT_NAME: tke-test + +permissions: + contents: read + +jobs: + setup-build-publish-deploy: + name: Setup, Build, Publish, and Deploy + runs-on: ubuntu-latest + environment: production + steps: + + - name: Checkout + uses: actions/checkout@v3 + + # Build + - name: Build Docker image + run: | + docker build -t ${TKE_IMAGE_URL}:${GITHUB_SHA} . + + - name: Login TKE Registry + run: | + docker login -u ${{ secrets.TENCENT_CLOUD_ACCOUNT_ID }} -p '${{ secrets.TKE_REGISTRY_PASSWORD }}' ${TKE_IMAGE_URL} + + # Push the Docker image to TKE Registry + - name: Publish + run: | + docker push ${TKE_IMAGE_URL}:${GITHUB_SHA} + + - name: Set up Kustomize + run: | + curl -o kustomize --location https://github.com/kubernetes-sigs/kustomize/releases/download/v3.1.0/kustomize_3.1.0_linux_amd64 + chmod u+x ./kustomize + + - name: Set up ~/.kube/config for connecting TKE cluster + uses: TencentCloud/tke-cluster-credential-action@v1 + with: + secret_id: ${{ secrets.TENCENT_CLOUD_SECRET_ID }} + secret_key: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }} + tke_region: ${{ env.TKE_REGION }} + cluster_id: ${{ env.TKE_CLUSTER_ID }} + + - name: Switch to TKE context + run: | + kubectl config use-context ${TKE_CLUSTER_ID}-context-default + + # Deploy the Docker image to the TKE cluster + - name: Deploy + run: | + ./kustomize edit set image ${TKE_IMAGE_URL}:${GITHUB_SHA} + ./kustomize build . | kubectl apply -f - + kubectl rollout status deployment/${DEPLOYMENT_NAME} + kubectl get services -o wide From a12a8e4098cb278078f900bd55353b067289e8c8 Mon Sep 17 00:00:00 2001 From: The-User-Python <97610126+The-User-Python@users.noreply.github.com> Date: Sat, 11 Mar 2023 18:36:45 +0530 Subject: [PATCH 6/6] Update README.md Signed-off-by: The-User-Python <97610126+The-User-Python@users.noreply.github.com> --- README.md | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index e865ee4..ff495fb 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,13 @@ ## Hi there 👋 -![DakshCodess' GitHub stats](https://github-readme-stats.vercel.app/api?username=DakshCodess&show_icons=true&theme=tokyonight) +![The-User-Python' GitHub stats](https://github-readme-stats.vercel.app/api?username=The-User-Python&show_icons=true&theme=tokyonight) - - + + -[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/DakshCodess/super-mario-bros/graphs/commit-activity) - ## Views

@@ -18,21 +16,3 @@ ## TECH ![Python](https://img.shields.io/badge/-Python-3776AB?logo=python&logoColor=ffffff) -![C++](https://img.shields.io/badge/-C++-00599C?logo=c%2b%2b&logoColor=ffffff) -![C](https://img.shields.io/badge/-C-A8B9CC?&logo=C&logoColor=000000) -![Java](https://img.shields.io/badge/-Java-007396?logo=Java&logoColor=000000) -![SQL](https://img.shields.io/badge/-SQL-003B57?&logo=postgresql) -![JavaScript](https://img.shields.io/badge/-JavaScript-F7DF1E?&logo=javascript&logoColor=000000) -![TypeScript](https://img.shields.io/badge/-TypeScript-007ACC?&logo=TypeScript&logoColor=ffffff) - -## Current Project - - - - - -
-

Trophies

- - Trophy -