-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
14ec117
commit 782ccf5
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: ci | ||
permissions: | ||
contents: read | ||
on: | ||
pull_request: | ||
push: | ||
branches: 'main' | ||
jobs: | ||
containers: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout code | ||
uses: actions/checkout@v4 | ||
- name: docker build podinfo | ||
run: | | ||
docker image build -t podinfo:latest podinfo/content/ | ||
- name: docker build node-service | ||
run: | | ||
docker image build -t node-service:latest node-service/content/ | ||
validate-score: | ||
runs-on: ubuntu-latest | ||
env: | ||
HUMCTL_VERSION: '*' | ||
steps: | ||
- name: checkout code | ||
uses: actions/checkout@v4 | ||
- uses: humanitec/setup-cli-action@v1 | ||
with: | ||
version: ${{ env.HUMCTL_VERSION }} | ||
- name: humctl score validate - node-service | ||
run: | | ||
humctl score validate --local --strict node-service/content/score.yaml | ||
- name: humctl score validate - podinfo | ||
run: | | ||
humctl score validate --local --strict podinfo/content/score.yaml |