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

View File

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