diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml new file mode 100644 index 0000000..e007988 --- /dev/null +++ b/.github/workflows/github-actions-demo.yml @@ -0,0 +1,18 @@ +name: GitHub Actions Demo +run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 +on: [push] +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v3 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." diff --git a/api-catalog-info.yaml b/api-catalog-info.yaml new file mode 100644 index 0000000..b81e6b3 --- /dev/null +++ b/api-catalog-info.yaml @@ -0,0 +1,10 @@ +apiVersion: backstage.io/v1alpha1 +kind: API +metadata: + name: idp-Service-api +spec: + type: openapi + lifecycle: production + owner: harness_account_all_users + definition: + $text: https://petstore.swagger.io/v2/swagger.json diff --git a/catalog-info.yaml b/catalog-info.yaml index dc10abd..bae3551 100644 --- a/catalog-info.yaml +++ b/catalog-info.yaml @@ -4,8 +4,26 @@ metadata: name: python-pipeline-samples annotations: backstage.io/techdocs-ref: dir:. - harness.io/project-url: https://qa.harness.io/ng/account/zEaak-FLS425IEO7OLzMUg/home/orgs/default/projects/vigneshproject/details +# harness.io/project-url: https://qa.harness.io/ng/account/zEaak-FLS425IEO7OLzMUg/home/orgs/default/projects/vigneshproject/details +# circleci.com/project-slug: github/vigneswara-propelo/python-pipeline-samples + gitlab.com/project-id: '43877214' + jira/project-key: IDP + jenkins.io/github-folder: 'CDS-68313' + firehydrant.com/service-name: 'python-pipeline-samples' + backstage.io/kubernetes-label-selector: 'app=idp-ui' + backstage.io/kubernetes-namespace: '63feee14cbf66e3c798c4bdc' + github.com/project-slug: vigneswara-propelo/python-pipeline-samples + harness.io/pipelines: | + Build: https://app.harness.io/ng/account/vpCkHKsDSxK9_KYfjCTMKA/home/orgs/default/projects/IDP_UI/pipelines/Build_IDP_UI_App/pipeline-studio/?storeType=INLINE + Lint: https://app.harness.io/ng/account/vpCkHKsDSxK9_KYfjCTMKA/home/orgs/default/projects/IDP_UI/pipelines/Lint/pipeline-studio + TypeCheck: https://app.harness.io/ng/account/vpCkHKsDSxK9_KYfjCTMKA/home/orgs/default/projects/IDP_UI/pipelines/Typecheck/pipeline-studio + grafana/dashboard-selector: "(tags @> 'prometheus' || tags @> 'blackbox')" + +# snyk.io/org-name: vigneswara-propelo +# snyk.io/project-ids: 7c7766e6-1231-4e4f-b51f-0cbd2aacb227, 4addb946-2ff4-41b7-ae71-2a5d480193ee spec: type: service lifecycle: experimental - owner: team-a + owner: harness_account_all_users + providesApis: + - idp-Service-api diff --git a/docs/index.md b/docs/index.md index 8f56837..9c15710 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1 +1 @@ -## access-control +## Python-pipelines diff --git a/prod-catalog-info.yaml b/prod-catalog-info.yaml new file mode 100644 index 0000000..0ad0cec --- /dev/null +++ b/prod-catalog-info.yaml @@ -0,0 +1,18 @@ +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: python-pipeline-samples-prod + annotations: + backstage.io/techdocs-ref: dir:. + backstage.io/kubernetes-label-selector: 'app=idp-ui' + backstage.io/kubernetes-namespace: '64805447033849710a35ad34' + github.com/project-slug: vigneswara-propelo/python-pipeline-samples + +# snyk.io/org-name: vigneswara-propelo +# snyk.io/project-ids: 7c7766e6-1231-4e4f-b51f-0cbd2aacb227, 4addb946-2ff4-41b7-ae71-2a5d480193ee +spec: + type: service + lifecycle: experimental + owner: harness_account_all_users + providesApis: + - idp-Service-api diff --git a/template.yaml b/template.yaml new file mode 100644 index 0000000..4aa9497 --- /dev/null +++ b/template.yaml @@ -0,0 +1,82 @@ +apiVersion: scaffolder.backstage.io/v1beta3 +kind: Template +metadata: + name: nextjs-app + title: Create a Next.js app + description: A template to create a new Next.js app + tags: + - nextjs + - react + - javascript +spec: + owner: himanshu.mishra@harness.io + type: service + parameters: + - title: Next.js app details + required: + - project_name + - github_repo + properties: + project_name: + title: Name of your new app + type: string + description: Unique name of the app + github_repo: + title: Name of the GitHub repository + type: string + description: This will be the name of Repository on Github + isPublish: + title: Do you wish to publish the artificat the internal registry? + type: boolean + - title: Service Infrastructure Details + required: + - owner + properties: + cloud_provider: + title: Choose a cloud provider for Deployment + type: string + enum: ["GCP","AWS"] + default: GCP + db: + title: Choose a Database Type for the Service + type: string + enum: ["None","MySQL","Postgres","MongoDB"] + default: None + cache: + title: Choose a caching system for the Service + type: string + enum: ["None","Redis"] + default: None + owner: + title: Choose an Owner for the Service + type: string + ui:field: OwnerPicker + ui:options: + allowedKinds: + - Group + # This field is hidden but needed to authenticate the request to trigger the pipeline + token: + title: Harness Token + type: string + ui:widget: password + ui:field: HarnessAuthToken + steps: + - id: trigger + name: Creating your Next.js app + action: trigger:harness-custom-pipeline + input: + url: "https://stress.harness.io/ng/account/px7xd_BFRCi-pfWPYXVjvw/ci/orgs/default/projects/VigneshProject/pipelines/IDP_Service_Onboarding/pipeline-studio/?storeType=INLINE" + inputset: + project_name: ${{ parameters.project_name }} + github_repo: ${{ parameters.github_repo }} + cloud_provider: ${{ parameters.provider }} + db: ${{ parameters.db }} + cache: ${{ parameters.cache }} + apikey: ${{ parameters.token }} + # The final step is to register our new component in the catalog. + + + output: + links: + - title: Pipeline Details + url: ${{ steps.trigger.output.PipelineUrl }}