فهرست منبع

feature: ghcr

jamesread 3 سال پیش
والد
کامیت
d89d198f96
4فایلهای تغییر یافته به همراه22 افزوده شده و 0 حذف شده
  1. 16 0
      .goreleaser.yml
  2. 2 0
      Dockerfile
  3. 2 0
      Dockerfile.arm64
  4. 2 0
      Dockerfile.armv7

+ 16 - 0
.goreleaser.yml

@@ -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 }}`

+ 2 - 0
Dockerfile

@@ -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 \

+ 2 - 0
Dockerfile.arm64

@@ -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 \ 

+ 2 - 0
Dockerfile.armv7

@@ -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 \