Skip to content

Commit

Permalink
ci: cosign all but the quay.io images for now
Browse files Browse the repository at this point in the history
  • Loading branch information
chgl committed Aug 21, 2021
1 parent 771d971 commit e856e13
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ jobs:
id: docker_meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/miracum/fhir-pseudonymizer
images: |
ghcr.io/miracum/fhir-pseudonymizer
quay.io/miracum/fhir-pseudonymizer
harbor.miracum.org/miracum-etl/fhir-pseudonymizer
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
if: ${{ github.event_name != 'pull_request' }}
Expand All @@ -64,6 +67,13 @@ jobs:
registry: quay.io
username: ${{ secrets.QUAY_IO_USERNAME }}
password: ${{ secrets.QUAY_IO_TOKEN }}
- name: Login to MIRACUM Harbor Container Registry
uses: docker/login-action@v1
if: ${{ github.event_name != 'pull_request' }}
with:
registry: harbor.miracum.org
username: ${{ secrets.MIRACUM_REGISTRY_USERNAME }}
password: ${{ secrets.MIRACUM_REGISTRY_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
Expand Down Expand Up @@ -118,6 +128,10 @@ jobs:
IMAGES: ${{ steps.docker_meta.outputs.tags }}
run: |
while read -r image; do
if [[ $image = quay.io/* ]]; then
echo "Skipping '$image' hosted on quay.io"
continue
fi
echo "Signing $image"
cosign sign -key /tmp/cosign.key "$image"
done <<< "$IMAGES"
Expand Down
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ docker run --rm -i -p 8080:8080 ghcr.io/miracum/fhir-pseudonymizer:latest
curl -X POST -H "Content-Type:application/fhir+json" "http://localhost:8080/fhir/\$de-identify" -d @benchmark/observation.json
```

All container images are pushed to [ghcr.io/miracum/fhir-pseudonymizer](https://github.com/orgs/miracum/packages/container/package/fhir-pseudonymizer).
Container images are pushed to the following registries:

- `ghcr.io/miracum/fhir-pseudonymizer:latest`
- `quay.io/miracum/fhir-pseudonymizer:latest`
- `harbor.miracum.org/miracum-etl/fhir-pseudonymizer:latest`

For deployment in Kubernetes see <https://github.com/miracum/charts/tree/master/charts/fhir-gateway> for a Helm Chart using the FHIR Pseudonymizer as one of its components.

Expand Down Expand Up @@ -142,6 +146,15 @@ Statistics Avg Stdev Max
Throughput: 12.97MB/s
```

## Verify image integrity

All released container images are signed using [cosign](https://github.com/sigstore/cosign).
The public key hosted at <https://miracum.github.io/cosign.pub> (see [here](https://github.com/miracum/miracum.github.io) for the repository source) may be used to verify them:

```sh
cosign verify -key https://miracum.github.io/cosign.pub ghcr.io/miracum/fhir-pseudonymizer:latest
```

## Attribution

Icons made by [Freepik](https://www.freepik.com) from [Flaticon](https://www.flaticon.com/).

0 comments on commit e856e13

Please sign in to comment.