Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from Humanitec-DemoOrg/ci-route
Browse files Browse the repository at this point in the history
CI + `route`
  • Loading branch information
mathieu-benoit authored Sep 8, 2023
2 parents 175ed19 + 4480626 commit 4ea55ca
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 48 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: ci
permissions:
contents: read
id-token: write
on:
push:
env:
SCORE_HUMANITEC_VERSION: 'latest'
jobs:
job:
runs-on: ubuntu-22.04
steps:
- name: checkout code
uses: actions/checkout@v3
- name: install score-humanitec
uses: score-spec/setup-score@v2
with:
file: score-humanitec
token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ env.SCORE_HUMANITEC_VERSION }}
- name: score-humanitec run - app1
run: |
score-humanitec run \
--env development \
-f score/app1/score.yaml \
--extensions score/app1/humanitec.score.yaml
- name: score-humanitec run - app2
run: |
score-humanitec run \
--env development \
-f score/app2/score.yaml \
--extensions score/app2/humanitec.score.yaml
- name: terraform validate
run: |
cd humanitec
terraform init -backend=false
terraform validate
13 changes: 13 additions & 0 deletions score/app1/humanitec.score.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: humanitec.org/v1b1

resources:
dns:
scope: shared

spec:
replicas: 2
labels:
"labelkey": "value"
annotations:
"annotationkey": "value"
14 changes: 10 additions & 4 deletions score/sh-demo.yaml → score/app1/score.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,18 @@ containers:
memory: "64Mi"
cpu: "251m"
resources:
"mydns":
mydns:
type: dns
"okta":
route:
type: route
params:
host: ${resources.mydns.host}
path: /
port: 80
okta:
#class: specialoktaforApp1
type: oauth-client-identity
"mongo":
mongo:
type: mongodb
"mypvc":
mypvc:
type: volume
13 changes: 13 additions & 0 deletions score/app2/humanitec.score.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: humanitec.org/v1b1

resources:
dns:
scope: shared

spec:
replicas: 2
labels:
"labelkey": "value"
annotations:
"annotationkey": "value"
14 changes: 10 additions & 4 deletions score/sh-demo2.yaml → score/app2/score.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,17 @@ containers:
memory: "64Mi"
cpu: "251m"
resources:
"mydns":
mydns:
type: dns
"okta":
route:
type: route
params:
host: ${resources.mydns.host}
path: /
port: 80
okta:
type: oauth-client-identity
"mongo":
mongo:
type: mongodb
"mypvc":
mypvc:
type: volume
20 changes: 0 additions & 20 deletions score/sh-demo-extensions.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions score/sh-demo2-extensions.yaml

This file was deleted.

0 comments on commit 4ea55ca

Please sign in to comment.