Skip to content

Commit

Permalink
ci: added publishing intel trust authority AS docker
Browse files Browse the repository at this point in the history
- Refactored directory structure for building KBS docker images
- Added publishing KBS intel trust authority AS docker image on ghcr.io
- Fixed building KBS ITA AS image - moved from OpenSSL 1 to OpenSSL 3

Signed-off-by: Pawel Proskurnicki <[email protected]>
  • Loading branch information
pawelpros committed Jun 14, 2024
1 parent 7b986f7 commit 0aae6a0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/kbs-build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,9 @@ jobs:
- 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
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/coco-as-grpc/Dockerfile --push
- name: Build Container Image KBS (intel-trust-authority AS)
run: |
commit_sha=${{ github.sha }}
DOCKER_BUILDKIT=1 docker build -t ghcr.io/confidential-containers/staged-images/kbs-intel-trust-authority-as:${commit_sha} -t ghcr.io/confidential-containers/staged-images/kbs-intel-trust-authority-as:latest . -f kbs/docker/intel-trust-authority/Dockerfile --push
5 changes: 3 additions & 2 deletions .github/workflows/kbs-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ jobs:
run: |
DOCKER_BUILDKIT=1 docker build -t kbs:coco-as . -f kbs/docker/Dockerfile; \
DOCKER_BUILDKIT=1 docker build -t kbs:coco-as-openssl --build-arg KBS_FEATURES=coco-as-builtin,openssl,resource,opa . -f kbs/docker/Dockerfile; \
DOCKER_BUILDKIT=1 docker build -t kbs:coco-as-grpc . -f kbs/docker/Dockerfile.coco-as-grpc; \
DOCKER_BUILDKIT=1 docker build -t kbs:coco-as-rhel-ubi . -f kbs/docker/Dockerfile.rhel-ubi
DOCKER_BUILDKIT=1 docker build -t kbs:coco-as-grpc . -f kbs/docker/coco-as-grpc/Dockerfile; \
DOCKER_BUILDKIT=1 docker build -t kbs:coco-as-rhel-ubi . -f kbs/docker/rhel-ubi/Dockerfile; \
DOCKER_BUILDKIT=1 docker build -t kbs:coco-as-intel-trust-authority . -f kbs/docker/intel-trust-authority/Dockerfile
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
kbs:
build:
context: .
dockerfile: ./kbs/docker/Dockerfile.coco-as-grpc
dockerfile: ./kbs/docker/coco-as-grpc/Dockerfile
#image: ghcr.io/confidential-containers/key-broker-service:latest
command: [
"/usr/local/bin/kbs",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ COPY . .
RUN apt-get update && apt install -y git

# Build and Install KBS
RUN cargo install --path kbs/src/kbs --no-default-features --features intel-trust-authority-as,rustls,resource,opa
ARG KBS_FEATURES=intel-trust-authority-as,rustls,resource,opa
RUN cargo install --path kbs/src/kbs --no-default-features --features ${KBS_FEATURES}

FROM ubuntu:22.04

Expand Down
File renamed without changes.

0 comments on commit 0aae6a0

Please sign in to comment.