Skip to content

Commit

Permalink
ci: fix the CoCoKeyprovider image pushing logic
Browse files Browse the repository at this point in the history
As the original  repo is now archived, thus we havenot been able to
publish the coco keyprovider image for a long time. This commit fixes
this issue by changing the image repo.

Fixes confidential-containers#672

Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 committed Aug 17, 2024
1 parent d7af343 commit 909fe14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/aa_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:

jobs:
build-and-push-images:
permissions:
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -25,4 +27,4 @@ jobs:
file: ./attestation-agent/docker/Dockerfile.keyprovider
platforms: linux/amd64
push: true
tags: ghcr.io/confidential-containers/coco-keyprovider:${{ github.ref_name }}, ghcr.io/confidential-containers/coco-keyprovider:latest
tags: ghcr.io/confidential-containers/staged-images/coco-keyprovider:${{ github.sha }}, ghcr.io/confidential-containers/staged-images/coco-keyprovider:latest
4 changes: 2 additions & 2 deletions attestation-agent/coco_keyprovider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ This example will encrypt an image from docker/library and buffer the resulting
```bash
head -c 32 /dev/urandom | openssl enc > image_key
mkdir output
docker run -v "$PWD/output:/output" ghcr.io/confidential-containers/coco-keyprovider /encrypt.sh \
docker run -v "$PWD/output:/output" ghcr.io/confidential-containers/staged-images/coco-keyprovider:latest /encrypt.sh \
-k "$(base64 < image_key)" \
-i kbs:///some/key/id \
-s docker://nginx:stable \
Expand All @@ -45,7 +45,7 @@ skopeo copy dir:output docker://ghcr.io/confidential-containers/nginx-encrypted
Alternatively, an authorization file can be mounted to the container to be able to access private registries directly:

```bash
docker run -v ~/.docker/config.json:/root/.docker/config.json ghcr.io/confidential-containers/coco-keyprovider /encrypt.sh \
docker run -v ~/.docker/config.json:/root/.docker/config.json ghcr.io/confidential-containers/staged-images/coco-keyprovider:latest /encrypt.sh \
-k "$(base64 < image_key)" \
-i kbs:///some/key/id \
-s docker://private.registry.io/nginx:stable \
Expand Down

0 comments on commit 909fe14

Please sign in to comment.