changes
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2025-12-19 10:35:59 +01:00
parent a40cb5801b
commit 4c9578b940
3 changed files with 4 additions and 1 deletions

View File

@@ -9,7 +9,6 @@ RUN \
sed -i 's/listen\s\+80;/listen 8080;/' /etc/nginx/conf.d/default.conf && \ sed -i 's/listen\s\+80;/listen 8080;/' /etc/nginx/conf.d/default.conf && \
sed -i 's/index index.html index.htm;/index mdwiki.html;/' /etc/nginx/conf.d/default.conf && \ sed -i 's/index index.html index.htm;/index mdwiki.html;/' /etc/nginx/conf.d/default.conf && \
sed -i 's,pid\s\+/run/nginx.pid;,pid /tmp/nginx.pid;,' /etc/nginx/nginx.conf && \ sed -i 's,pid\s\+/run/nginx.pid;,pid /tmp/nginx.pid;,' /etc/nginx/nginx.conf && \
dd if=/dev/random of=/usr/share/nginx/html/numbers bs=1024 count=1000000
USER nobody USER nobody
# ------------ # ------------
EXPOSE 8080 EXPOSE 8080

View File

@@ -1,4 +1,5 @@
[Wolfgang Hottgenroth](mailto:woho@hottis.de) [Wolfgang Hottgenroth](mailto:woho@hottis.de)
Tag: %TAG%

View File

@@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
set -ex
if [ "$IMAGE_TAG" == "" ]; then if [ "$IMAGE_TAG" == "" ]; then
echo "Make sure IMAGE_TAG is set" echo "Make sure IMAGE_TAG is set"
@@ -18,6 +20,7 @@ kubectl create namespace $NAMESPACE \
kubectl -f - apply kubectl -f - apply
sed -i 's,%TAG%,'$IMAGE_TAG','g content/about.md
cat $DEPLOYMENT_DIR/deploy-yml.tmpl | \ cat $DEPLOYMENT_DIR/deploy-yml.tmpl | \
sed -e 's,%IMAGE%,'$IMAGE_NAME':'$IMAGE_TAG','g | \ sed -e 's,%IMAGE%,'$IMAGE_NAME':'$IMAGE_TAG','g | \
kubectl apply -f - -n $NAMESPACE kubectl apply -f - -n $NAMESPACE