5 Commits
Author SHA1 Message Date
kesslerpe96777 e22c164c37 Dockerfile aktualisiert
continuous-integration/drone/push Build is passing
2026-05-12 13:29:58 +00:00
kesslerpe96777 7293f0cff9 .drone.yml aktualisiert
continuous-integration/drone/push Build is passing
2026-05-12 12:58:50 +00:00
kesslerpe96777 35d63000f9 Dockerfile aktualisiert
continuous-integration/drone/push Build is failing
2026-05-12 12:52:38 +00:00
kesslerpe96777 1c274cf1c6 merge upstream 2026-05-12 12:13:13 +00:00
freudenreichan 1a0fcbbd12 .drone.yml aktualisiert 2026-04-11 11:45:33 +00:00
2 changed files with 17 additions and 23 deletions
+9 -15
View File
@@ -42,26 +42,20 @@ steps:
- git config --global user.email "drone@ci.local" - git config --global user.email "drone@ci.local"
- git config --global user.name "Drone CI" - git config --global user.name "Drone CI"
# Remote setzen # Eigenes Repo klonen (mit Token-Auth)
#- git remote set-url origin https://git.efi.th-nuernberg.de/gitea/freudenreichan/EinfuehrungInDocker_Pipeline2 - git clone https://kesslerpe96777:$GITEA_TOKEN@git.efi.th-nuernberg.de/gitea/kesslerpe96777/EinfuehrungInDocker_Pipeline2.git
- cd EinfuehrungInDocker_Pipeline2
# Repo clonen # Branch wechseln oder neu erstellen
- git clone https://git.efi.th-nuernberg.de/gitea/freudenreichan/EinfuehrungInDocker_Pipeline2.git
- cd EinfuehrungInDocker_Pipeline
# Branch wechseln oder erstellen
- git checkout drone-artifacts || git checkout -b drone-artifacts - git checkout drone-artifacts || git checkout -b drone-artifacts
# Artifact löschen und neu hinzufügen # Altes Artifact löschen (|| true falls noch nicht da)
- git rm image.tar - git rm image.tar || true
- cp $DRONE_WORKSPACE/image.tar . - cp $DRONE_WORKSPACE/image.tar .
- git add image.tar - git add image.tar
# Commit nur wenn Änderungen vorhanden # Commit nur wenn Änderungen
- git commit -m "Add built Docker image [skip ci]" || echo "Nothing to commit" - git commit -m "Add built Docker image [skip ci]" || echo "Nothing to commit"
# Pull vor Push (um Konflikte zu vermeiden) # Push (-u beim ersten Mal damit der neue Branch upstream gesetzt wird)
- git pull || true - git push -u origin drone-artifacts
# Push
- git push
+3 -3
View File
@@ -1,5 +1,5 @@
# Base-Image # Base-Image
FROM alpine:3.22 AS builder FROM alpine:3.23 AS builder
# Pakete installieren + Updates einspielen # Pakete installieren + Updates einspielen
RUN apk upgrade --no-cache && apk add --no-cache gcc musl-dev RUN apk upgrade --no-cache && apk add --no-cache gcc musl-dev
@@ -15,7 +15,7 @@ RUN gcc -O2 -o deployment deployment.c
# Base-Image # Base-Image
FROM alpine:3.22 FROM alpine:3.23
# Sicherheitsupdates einspielen # Sicherheitsupdates einspielen
RUN apk upgrade --no-cache RUN apk upgrade --no-cache
@@ -44,4 +44,4 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
# Ausgabe wird ins Volume geschrieben # Ausgabe wird ins Volume geschrieben
ENTRYPOINT ["/bin/sh", "-c"] ENTRYPOINT ["/bin/sh", "-c"]
CMD ["touch /output/output.txt && ./deployment 10 >> /output/output.txt & tail -f /output/output.txt"] CMD ["./deployment 10 2>&1 | tee /output/output.txt"]