From 0ec7c6be9c54ddb930a76e172a4f0787ef8bc103 Mon Sep 17 00:00:00 2001 From: Laurin-Notemann Date: Wed, 22 May 2024 13:00:25 +0200 Subject: [PATCH] DEL: remove uncessary scripts --- .github/workflows/cd-workflow.yaml | 4 +++- app-config.docker.yaml | 3 --- app-config.yaml | 3 --- package.json | 2 -- packages/backend/package.json | 4 +--- 5 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cd-workflow.yaml b/.github/workflows/cd-workflow.yaml index 79796fc..e0313ea 100644 --- a/.github/workflows/cd-workflow.yaml +++ b/.github/workflows/cd-workflow.yaml @@ -2,7 +2,9 @@ name: Deploy backstage on: workflow_dispatch: - + push: + branches: + - main jobs: create-and-push-image: diff --git a/app-config.docker.yaml b/app-config.docker.yaml index 6fba177..269b356 100644 --- a/app-config.docker.yaml +++ b/app-config.docker.yaml @@ -11,6 +11,3 @@ catalog: pullRequestBranchName: backstage-integration rules: - allow: [Component, System, API, Resource, Location] - locations: - - type: file - target: minikube/catalog-info.yaml diff --git a/app-config.yaml b/app-config.yaml index 1ddeff9..c9b56c7 100644 --- a/app-config.yaml +++ b/app-config.yaml @@ -55,9 +55,6 @@ catalog: rules: - allow: [User, Group] - - type: file - target: ../../minikube/catalog-info.yaml - - type: url target: https://github.com/backstage/software-templates/blob/main/scaffolder-templates/react-ssr-template/template.yaml rules: diff --git a/package.json b/package.json index cc39a26..6f1a8d9 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,6 @@ "start-backend": "yarn workspace backend start", "build:backend": "yarn workspace backend build", "build:all": "backstage-cli repo build --all", - "build-image": "yarn workspace backend build-image", - "build-image64": "yarn workspace backend build-image-amd64-push-notemann", "tsc": "tsc", "tsc:full": "tsc --skipLibCheck false --incremental false", "clean": "backstage-cli repo clean", diff --git a/packages/backend/package.json b/packages/backend/package.json index 5a4e481..7102e87 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -12,9 +12,7 @@ "build": "backstage-cli package build", "lint": "backstage-cli package lint", "test": "backstage-cli package test", - "clean": "backstage-cli package clean", - "build-image": "docker build ../.. -f Dockerfile --tag backstage", - "build-image-amd64-push-notemann": "docker buildx build --build-arg APP_ENV=production --platform linux/amd64 ../.. -f ../../Dockerfile --tag notemann27/backstage --push" + "clean": "backstage-cli package clean" }, "dependencies": { "@backstage/backend-common": "^0.20.1",