Skip to content

Commit

Permalink
ci: build grpc kbs every merge to main
Browse files Browse the repository at this point in the history
Now we only build kbs-built-in-coco-as every merging to main. We also
need kbs-grpc-coco-as. In this way we can test whether the current KBS
cluster (kbs-grpc-coco-as, coco-as, rvps and coco-keyprovider) works
well together.

Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 committed Jan 2, 2024
1 parent 5986628 commit 51b83e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/kbs-build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Container Image
- name: Build Container Image KBS (built-in AS)
run: |
commit_sha=${{ github.sha }}
DOCKER_BUILDKIT=1 docker build -t ghcr.io/confidential-containers/staged-images/kbs:${commit_sha} -t ghcr.io/confidential-containers/staged-images/kbs:latest --build-arg KBS_FEATURES=coco-as-builtin,openssl,resource,opa . -f kbs/docker/Dockerfile --push
- name: Build Container Image KBS (gRPC AS)
run: |
commit_sha=${{ github.sha }}
DOCKER_BUILDKIT=1 docker build -t ghcr.io/confidential-containers/staged-images/kbs-grpc-as:${commit_sha} -t ghcr.io/confidential-containers/staged-images/kbs-grpc-as:latest . -f kbs/docker/Dockerfile.coco-as-grpc --push

0 comments on commit 51b83e1

Please sign in to comment.