mirror of
https://github.com/gotson/komga.git
synced 2026-01-03 06:16:34 +01:00
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:
parent
234dae0841
commit
5e7194c166
4 changed files with 14 additions and 0 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue