feature: ghcr

This commit is contained in:
jamesread 2023-03-24 16:01:41 +00:00
parent b638a7c992
commit d89d198f96
4 changed files with 22 additions and 0 deletions

View File

@ -89,6 +89,7 @@ archives:
dockers:
- image_templates:
- "docker.io/jamesread/olivetin:{{ .Tag }}-amd64"
- "ghcr.io/olivetin/olivetin:{{ .Tag }}-amd64"
dockerfile: Dockerfile
goos: linux
goarch: amd64
@ -104,6 +105,7 @@ dockers:
- image_templates:
- "docker.io/jamesread/olivetin:{{ .Tag }}-arm64"
- "ghcr.io/olivetin/olivetin:{{ .Tag }}-amd64"
dockerfile: Dockerfile.arm64
goos: linux
goarch: arm64
@ -127,6 +129,16 @@ docker_manifests:
- docker.io/jamesread/olivetin:{{ .Version }}-amd64
- docker.io/jamesread/olivetin:{{ .Version }}-arm64
- name_template: ghcr.io/olivetin/olivetin:{{ .Version }}
image_templates:
- ghcr.io/olivetin/olivetin:{{ .Version }}-amd64
- ghcr.io/olivetin/olivetin:{{ .Version }}-arm64
- name_template: ghcr.io/olivetin/olivetin:latest
image_templates:
- ghcr.io/olivetin/olivetin:{{ .Version }}-amd64
- ghcr.io/olivetin/olivetin:{{ .Version }}-arm64
nfpms:
- id: default
maintainer: James Read <contact@jread.com>
@ -213,6 +225,10 @@ nfpms:
release:
footer: |
## Container images (from GitHub)
- `docker pull ghcr.io/olivetin/olivetin:{{ .Version }}`
## Container images ([on Docker Hub](https://hub.docker.com/r/jamesread/olivetin/tags?page=1&ordering=last_updated))
- `docker pull docker.io/jamesread/olivetin:{{ .Version }}`

View File

@ -1,5 +1,7 @@
FROM --platform=linux/amd64 registry.fedoraproject.org/fedora-minimal:36-x86_64
LABEL org.opencontainers.image.source https://github.com/OliveTin/OliveTin
RUN mkdir -p /config /var/www/olivetin \
&& microdnf install -y --nodocs --noplugins --setopt=keepcache=0 --setopt=install_weak_deps=0 \
iputils \

View File

@ -1,5 +1,7 @@
FROM --platform=linux/arm64 registry.fedoraproject.org/fedora-minimal:36-aarch64
LABEL org.opencontainers.image.source https://github.com/OliveTin/OliveTin
RUN mkdir -p /config /var/www/olivetin \
&& \
microdnf install -y --nodocs --noplugins --setopt=keepcache=0 --setopt=install_weak_deps=0 \

View File

@ -1,5 +1,7 @@
FROM --platform=linux/armhfp registry.fedoraproject.org/fedora-minimal:36-armhfp
LABEL org.opencontainers.image.source https://github.com/OliveTin/OliveTin
RUN mkdir -p /config /var/www/olivetin \
&& \
microdnf install -y --nodocs --noplugins --setopt=keepcache=0 --setopt=install_weak_deps=0 \