Skip to content

Commit

Permalink
External templates (#68)
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Benoit <[email protected]>
  • Loading branch information
mathieu-benoit authored Nov 20, 2024
1 parent 272e412 commit 38a7101
Show file tree
Hide file tree
Showing 71 changed files with 14 additions and 3,443 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ jobs:
steps:
- name: checkout code
uses: actions/checkout@v4
- name: docker build podinfo
run: |
docker image build -t podinfo:latest templates/podinfo-example/content/
- name: docker build node-service
run: |
docker image build -t node-service:latest templates/node-service/content/
- name: docker build backstage
run: |
mkdir credentials && touch credentials/github-app-backstage-humanitec-credentials.yaml
Expand All @@ -35,11 +29,3 @@ jobs:
run: |
humctl score validate --local --strict \
score.yaml
- name: humctl score validate - node-service
run: |
humctl score validate --local --strict \
templates/node-service/content/score.yaml
- name: humctl score validate - podinfo
run: |
humctl score validate --local --strict \
templates/podinfo-example/content/score.yaml
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ COPY --from=build --chown=node:node /app/packages/backend/dist/bundle/ ./
# Copy any other files that we need at runtime
COPY --chown=node:node app-config.yaml app-config.production.yaml app-config.5min.yaml ./
COPY --chown=node:node catalog-info.yaml ./
COPY --chown=node:node templates templates
COPY --chown=node:node examples examples

# This switches many Node.js dependencies to production mode.
Expand Down
12 changes: 8 additions & 4 deletions app-config.5min.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ catalog:
locations:
- type: file
target: catalog-info.yaml
- type: file
target: templates/node-service/template.yaml
- type: file
target: templates/5min-podinfo/template.yaml
- type: url
target: https://github.com/humanitec-architecture/backstage-catalog-templates/blob/main/5min-node-service/template.yaml
rules:
- allow: [Template]
- type: url
target: https://github.com/humanitec-architecture/backstage-catalog-templates/blob/main/5min-podinfo/template.yaml
rules:
- allow: [Template]
- type: file
target: examples/org.yaml
rules:
Expand Down
4 changes: 2 additions & 2 deletions app-config.production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ catalog:
- type: url
target: https://github.com/${GITHUB_ORG_ID}/backstage/blob/main/catalog-info.yaml
- type: url
target: https://github.com/${GITHUB_ORG_ID}/backstage/blob/main/templates/node-service/template.yaml
target: https://github.com/humanitec-architecture/backstage-catalog-templates/blob/main/node-service/template.yaml
rules:
- allow: [Template]
- type: url
target: https://github.com/${GITHUB_ORG_ID}/backstage/blob/main/templates/podinfo-example/template.yaml
target: https://github.com/humanitec-architecture/backstage-catalog-templates/blob/main/podinfo/template.yaml
rules:
- allow: [Template]
- type: url
Expand Down
8 changes: 4 additions & 4 deletions app-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ catalog:
locations:
- type: file
target: ../../catalog-info.yaml
- type: file
target: ../../templates/node-service/template.yaml
- type: url
target: https://github.com/humanitec-architecture/backstage-catalog-templates/blob/main/node-service/template.yaml
rules:
- allow: [Template]
- type: file
target: ../../templates/podinfo-example/template.yaml
- type: url
target: https://github.com/humanitec-architecture/backstage-catalog-templates/blob/main/podinfo/template.yaml
rules:
- allow: [Template]
- type: file
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

136 changes: 0 additions & 136 deletions templates/5min-node-service/content/.github/workflows/deploy.yaml

This file was deleted.

Loading

0 comments on commit 38a7101

Please sign in to comment.