ci: push container to GHCR & set source label on container (#956)

Update Github actions to push to GHCR and add labels to docker containers
so that renovate etc can find the source
This commit is contained in:
Callum Loh 2022-08-26 03:12:08 +01:00 committed by GitHub
parent 234dae0841
commit 5e7194c166
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 0 deletions

View file

@ -93,6 +93,12 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -13,6 +13,9 @@ docker buildx build \
--tag gotson/komga:$DOCKER_CHANNEL \
--tag gotson/komga:$VERSION_MAJOR.x \
--tag gotson/komga:$1 \
--tag ghcr.io/gotson/komga:$DOCKER_CHANNEL \
--tag ghcr.io/gotson/komga:$VERSION_MAJOR.x \
--tag ghcr.io/gotson/komga:$1 \
--file ./Dockerfile . \
--push
@ -23,5 +26,8 @@ docker buildx build \
--tag gotson/komga:$DOCKER_CHANNEL-legacy \
--tag gotson/komga:$VERSION_MAJOR.x-legacy \
--tag gotson/komga:$1-legacy \
--tag ghcr.io/gotson/komga:$DOCKER_CHANNEL-legacy \
--tag ghcr.io/gotson/komga:$VERSION_MAJOR.x-legacy \
--tag ghcr.io/gotson/komga:$1-legacy \
--file ./Dockerfile.legacy . \
--push

View file

@ -10,3 +10,4 @@ ENV KOMGA_CONFIGDIR="/config"
ENV LC_ALL=en_US.UTF-8
ENTRYPOINT ["java", "org.springframework.boot.loader.JarLauncher", "--spring.config.additional-location=file:/config/"]
EXPOSE 8080
LABEL org.opencontainers.image.source="https://github.com/gotson/komga"

View file

@ -10,3 +10,4 @@ ENV KOMGA_CONFIGDIR="/config"
ENV LC_ALL=en_US.UTF-8
ENTRYPOINT ["java", "org.springframework.boot.loader.JarLauncher", "--spring.config.additional-location=file:/config/"]
EXPOSE 8080
LABEL org.opencontainers.image.source="https://github.com/gotson/komga"