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
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Publish to ghcr
|
- name: Publish app to ghcr
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
repo: ghcr.io/kevinmidboe/${DRONE_REPO_NAME}
|
repo: ghcr.io/kevinmidboe/${DRONE_REPO_NAME}
|
||||||
dockerfile: Dockerfile
|
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:
|
username:
|
||||||
from_secret: GITHUB_USERNAME
|
from_secret: GITHUB_USERNAME
|
||||||
password:
|
password:
|
||||||
@@ -129,6 +145,6 @@ volumes:
|
|||||||
temp: {}
|
temp: {}
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 83b1ec6458ceddef038000faac2b391d192530ceb681b790ad79c90456f12cca
|
hmac: 8e51cded679321781a79fa1f393fe3c23b56426129aa557eee6f14f4f2618076
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ metadata:
|
|||||||
name: varnish-vcl
|
name: varnish-vcl
|
||||||
namespace: ${NAMESPACE}
|
namespace: ${NAMESPACE}
|
||||||
data:
|
data:
|
||||||
default.vcl: |
|
default.vcl: |-
|
||||||
vcl 4.0;
|
vcl 4.0;
|
||||||
|
|
||||||
import std;
|
import std;
|
||||||
|
|||||||
@@ -21,8 +21,6 @@ RUN git clone https://github.com/varnish/libvmod-digest.git /opt/libvmod-digest
|
|||||||
./configure VARNISHSRC=/usr/include/varnish && \
|
./configure VARNISHSRC=/usr/include/varnish && \
|
||||||
make && make install
|
make && make install
|
||||||
|
|
||||||
COPY default.vcl /etc/varnish/default.vcl
|
|
||||||
|
|
||||||
EXPOSE 6081
|
EXPOSE 6081
|
||||||
|
|
||||||
CMD ["varnishd", "-F", "-f", "/etc/varnish/default.vcl", "-a", ":6081", "-s", "malloc,512m"]
|
CMD ["varnishd", "-F", "-f", "/etc/varnish/default.vcl", "-a", ":6081", "-s", "malloc,512m"]
|
||||||
|
|||||||
Reference in New Issue
Block a user