From 5aaa6497c988e8a6339c7ebb2e92f48fb560c1fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fischer?= Date: Wed, 3 May 2023 14:09:59 +0200 Subject: [PATCH] Release images to ghcr.io (#16) * add labels to container image * Release image to ghcr.io --- .github/workflows/release.yml | 7 ++++--- build/Dockerfile | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eeaa715..7b0eba8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,8 @@ jobs: uses: elgohr/Publish-Docker-Github-Action@v5 with: name: inovex/pgbouncer-vault-sidecar - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + registry: ghcr.io workdir: build - tag_semver: true \ No newline at end of file + tag_semver: true diff --git a/build/Dockerfile b/build/Dockerfile index 0a4f0ab..6ddcdf9 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,6 +1,10 @@ # Use consul-template upstream image FROM hashicorp/consul-template:0.31.0 +LABEL org.opencontainers.image.source=https://github.com/inovex/pgbouncer-vault-sidecar +LABEL org.opencontainers.image.description="Credential management for your Postgres database connections! " +LABEL org.opencontainers.image.licenses=AFL-2.0 + # Switch to root for setup USER root