Skip to content

Commit

Permalink
chore: add Sonar to README and add opencontainer labels
Browse files Browse the repository at this point in the history
  • Loading branch information
kodehat committed Feb 22, 2024
1 parent 4dca4fd commit 380eb60
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ RUN bash build.sh

FROM alpine:3.19.1

LABEL org.opencontainers.image.authors='[email protected]' \
org.opencontainers.image.url='https://www.portkey.page' \
org.opencontainers.image.documentation='https://github.com/kodehat/portkey' \
org.opencontainers.image.source='https://github.com/kodehat/portkey' \
org.opencontainers.image.vendor='kodehat' \
org.opencontainers.image.licenses='AGPL-3.0'

WORKDIR /opt

COPY --from=backend /app/portkey /opt/app
Expand Down
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
<br />

<div align="center">
<!-- Sonar quality gate -->
<a href="https://sonarcloud.io/project/overview?id=kodehat_portkey">
<img src="https://sonarcloud.io/api/project_badges/measure?project=kodehat_portkey&metric=alert_status"
alt="Sonar quality gate" />
</a>
<!-- GitHub stars -->
<a href="https://github.com/kodehat/portkey">
<img src="https://img.shields.io/github/stars/kodehat/portkey"
Expand All @@ -22,10 +27,10 @@
<!-- Go version -->
<img src="https://img.shields.io/github/go-mod/go-version/kodehat/portkey"
alt="Go version" />
<!-- Docker Hub -->
<a href="https://travis-ci.org/choojs/choo">
<img src="https://img.shields.io/docker/pulls/kodehat/portkey"
alt="Docker Hub" />
<!-- Docker image size -->
<a href="https://hub.docker.com/r/codehat/portkey">
<img src="https://img.shields.io/docker/image-size/codehat/portkey"
alt="Docker image size" />
</a>
</div>

Expand Down

0 comments on commit 380eb60

Please sign in to comment.