fix(drone): use full commit SHA for Docker tag and fix non-interactive adduser
continuous-integration/drone/push Build is failing

- Replace bash substring syntax ${DRONE_COMMIT_SHA:0:7} with
  ${DRONE_COMMIT_SHA} which is supported by Drone YAML variables
- Use 'adduser -D -g ""' in Dockerfile to skip interactive prompts
  for user information during Docker image build
This commit is contained in:
2026-10-29 00:47:28 +01:00
parent d4a6726930
commit eb73c55ac2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ steps:
context: . context: .
registry: gitea.jambotron.com registry: gitea.jambotron.com
repo: gitea.jambotron.com/liosha84/htop-web repo: gitea.jambotron.com/liosha84/htop-web
tags: ${DRONE_COMMIT_SHA:0:7},main-latest tags: ${DRONE_COMMIT_SHA},main-latest
username: username:
from_secret: REGISTRY_USERNAME from_secret: REGISTRY_USERNAME
password: password:
+1 -1
View File
@@ -23,7 +23,7 @@ FROM eclipse-temurin:21-jre
WORKDIR /app WORKDIR /app
COPY --from=builder /app/build/libs/backend-0.0.1-SNAPSHOT.jar app.jar COPY --from=builder /app/build/libs/backend-0.0.1-SNAPSHOT.jar app.jar
RUN adduser --disabled-password --no-create-home appuser && \ RUN adduser -D -g "" appuser && \
chown appuser:appuser /app chown appuser:appuser /app
USER appuser USER appuser