Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make container images also available on quay.io #25

Merged
merged 2 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/can-provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
# list of Docker images to use as base name for tags
images: |
ghcr.io/eclipse-kuksa/kuksa-can-provider/can-provider
quay.io/eclipse-kuksa/can-provider
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=branch
Expand All @@ -62,15 +63,23 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to the Container registry
- name: Log in to ghcr.io container registry
if: needs.check_ghcr_push.outputs.push == 'true'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build DBC provider container container and push to ghcr.io (and ttl.sh)
- name: Log in to quay.io container registry
if: needs.check_ghcr_push.outputs.push == 'true'
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_IO_USERNAME }}
password: ${{ secrets.QUAY_IO_TOKEN }}

- name: Build DBC provider container container and push to ghcr.io, quay.io and ttl.sh
id: ghcr-build
if: needs.check_ghcr_push.outputs.push == 'true'
uses: docker/build-push-action@v5
Expand Down
13 changes: 11 additions & 2 deletions doc/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,17 @@ docker run --net=host -e LOG_LEVEL=INFO can-provider:latest --server-type kuksa

## Pre-built Docker container

A pre-built Docker container is available in the repository.
A pre-built Docker container is available in the repository. The container is availablat the github container registry via

```
docker pull ghcr.io/eclipse-kuksa/kuksa-can-provider/can-provider
```

For users where the ghcr regsitry is not easily accesible, e.g. China mainland users, starting from release 0.4.4 we also made the container images available at quay.io
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor, regsitry

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed. Also some markdown fixes suggested by linter


```
docker pull quay.io/eclipse-kuksa/can-provider
```

## KUKSA.val Server/Databroker Authentication when using Docker

Expand All @@ -37,4 +47,3 @@ docker run --net=host -e LOG_LEVEL=INFO -v /home/user/kuksa.val/jwt:/jwt can-pr
```

*Note that authentication in KUKSA Databroker by default is deactivated, and then no token needs to be given!*