publish custom varnish image to ghcr.io

This commit is contained in:
2025-08-18 19:04:28 +02:00
parent b640426064
commit 31320f3796
3 changed files with 19 additions and 5 deletions

View File

@@ -33,12 +33,28 @@ platform:
arch: amd64
steps:
- name: Publish to ghcr
- name: Publish app to ghcr
image: plugins/docker
settings:
registry: ghcr.io
repo: ghcr.io/kevinmidboe/${DRONE_REPO_NAME}
dockerfile: Dockerfile
compress: true
username:
from_secret: GITHUB_USERNAME
password:
from_secret: GHCR_UPLOAD_TOKEN
tags:
- latest
- ${DRONE_COMMIT_SHA}
- name: Publish varnish to ghcr
image: plugins/docker
settings:
registry: ghcr.io
repo: ghcr.io/kevinmidboe/varnish-infra-map
dockerfile: varnish/Dockerfile
compress: true
username:
from_secret: GITHUB_USERNAME
password:
@@ -129,6 +145,6 @@ volumes:
temp: {}
---
kind: signature
hmac: 83b1ec6458ceddef038000faac2b391d192530ceb681b790ad79c90456f12cca
hmac: 8e51cded679321781a79fa1f393fe3c23b56426129aa557eee6f14f4f2618076
...

View File

@@ -4,7 +4,7 @@ metadata:
name: varnish-vcl
namespace: ${NAMESPACE}
data:
default.vcl: |
default.vcl: |-
vcl 4.0;
import std;

View File

@@ -21,8 +21,6 @@ RUN git clone https://github.com/varnish/libvmod-digest.git /opt/libvmod-digest
./configure VARNISHSRC=/usr/include/varnish && \
make && make install
COPY default.vcl /etc/varnish/default.vcl
EXPOSE 6081
CMD ["varnishd", "-F", "-f", "/etc/varnish/default.vcl", "-a", ":6081", "-s", "malloc,512m"]