Skip to content

Commit

Permalink
ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-benoit authored Nov 16, 2024
1 parent 14ec117 commit 782ccf5
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yaml
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

0 comments on commit 782ccf5

Please sign in to comment.