mirror of
https://github.com/KevinMidboe/infra-map.git
synced 2025-10-29 17:40:28 +00:00
publish custom varnish image to ghcr.io
This commit is contained in:
20
.drone.yml
20
.drone.yml
@@ -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
|
||||
|
||||
...
|
||||
|
||||
@@ -4,7 +4,7 @@ metadata:
|
||||
name: varnish-vcl
|
||||
namespace: ${NAMESPACE}
|
||||
data:
|
||||
default.vcl: |
|
||||
default.vcl: |-
|
||||
vcl 4.0;
|
||||
|
||||
import std;
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user