Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0680557886 | ||
|
|
3c85936c73 | ||
|
|
9d03b0977d | ||
|
|
ed48cacfbc | ||
|
|
3f9ecc1113 | ||
|
|
eb73c55ac2 |
+13
-9
@@ -1,10 +1,9 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build-and-push
|
||||
name: build-test
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
steps:
|
||||
@@ -13,10 +12,18 @@ steps:
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
context: .
|
||||
when:
|
||||
event:
|
||||
- pull_request
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build-and-push
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
branch:
|
||||
- master
|
||||
|
||||
steps:
|
||||
- name: build-and-push
|
||||
image: plugins/docker
|
||||
settings:
|
||||
@@ -24,11 +31,8 @@ steps:
|
||||
context: .
|
||||
registry: gitea.jambotron.com
|
||||
repo: gitea.jambotron.com/liosha84/htop-web
|
||||
tags: ${DRONE_COMMIT_SHA:0:7},main-latest
|
||||
tags: ${DRONE_COMMIT_SHA},main-latest
|
||||
username:
|
||||
from_secret: REGISTRY_USERNAME
|
||||
password:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ FROM eclipse-temurin:21-jre
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/build/libs/backend-0.0.1-SNAPSHOT.jar app.jar
|
||||
|
||||
RUN adduser --disabled-password --no-create-home appuser && \
|
||||
RUN adduser --disabled-password --gecos "" appuser && \
|
||||
chown appuser:appuser /app
|
||||
USER appuser
|
||||
|
||||
|
||||
Reference in New Issue
Block a user