Skip to content

humctl score deploy #28

humctl score deploy

humctl score deploy #28

Workflow file for this run

name: ci
permissions:
contents: read
on:
pull_request:
branches: [main]
jobs:
containers:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- 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
docker image build -t backstage:latest .
score-validate:
runs-on: ubuntu-latest
env:
HUMCTL_VERSION: '0.21.0'
steps:
- name: checkout code
uses: actions/checkout@v3
- uses: humanitec/setup-cli-action@v1
with:
version: ${{ env.HUMCTL_VERSION }}
- name: humctl score validate - backstage
run: |
humctl score validate score.yaml \
--token ${{ secrets.HUMANITEC_TOKEN }} \
--org ${{ vars.HUMANITEC_ORG_ID }} \
--strict
- name: humctl score validate - node-service
run: |
humctl score validate templates/node-service/content/score.yaml \
--token ${{ secrets.HUMANITEC_TOKEN }} \
--org ${{ vars.HUMANITEC_ORG_ID }} \
--strict
- name: humctl score validate - podinfo
run: |
humctl score validate templates/podinfo-example/content/score.yaml \
--token ${{ secrets.HUMANITEC_TOKEN }} \
--org ${{ vars.HUMANITEC_ORG_ID }} \
--strict