1 Commits

Author SHA1 Message Date
0fc47c9e3f update drone hash signature 2025-08-26 19:27:22 +02:00
2 changed files with 16 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
---
kind: pipeline
type: docker
name: Build app
name: Build
platform:
os: linux
@@ -26,7 +26,7 @@ steps:
---
kind: pipeline
type: docker
name: Publish app to gchr
name: Publish
platform:
os: linux
@@ -64,11 +64,14 @@ depends_on:
---
kind: pipeline
type: docker
name: Publish varnish image
name: Publish
platform:
os: linux
arch: amd64
kind: pipeline
type: docker
name: config-check
steps:
- name: check-config
@@ -76,11 +79,11 @@ steps:
commands:
- git fetch --no-tags --depth=2
- |
if git diff-tree --no-commit-id --name-only -r HEAD | grep -qE '(\.drone.yml|(varnish/.+(vcl|tmpl)(\n|$)))'; then
echo "Changes detected in varnish config"
else
if git diff --quiet HEAD^ HEAD -- varnish/default.vcl; then
echo "No changes in varnish config file, skipping..."
exit 78 # exit code 78 = skip in Drone
else
echo "Changes detected in varnish config"
fi
- name: Publish varnish to ghcr
@@ -96,8 +99,7 @@ steps:
password:
from_secret: GHCR_UPLOAD_TOKEN
build_args_from_env:
- IMAGE_HOST
- IMAGE_PROXY
-
tags:
- latest
- ${DRONE_COMMIT_SHA}
@@ -111,11 +113,13 @@ trigger:
branch:
- main
- update
depends_on:
- Build
---
kind: pipeline
type: docker
name: Deploy to kubernetes
name: Deploy
platform:
os: linux
@@ -183,3 +187,5 @@ volumes:
---
kind: signature
hmac: 3ba933b1c9b7f6bda1691bfb0335290f461d08cebfc5e9fe60c2f272604189d0
...

View File

@@ -9,9 +9,8 @@ metadata:
spec:
ports:
- port: 80
name: http
protocol: TCP
targetPort: 6081
targetPort: 3000
selector:
app: infra-map
sessionAffinity: None