Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0680557886 | ||
|
|
3c85936c73 | ||
|
|
9d03b0977d | ||
|
|
ed48cacfbc | ||
|
|
3f9ecc1113 | ||
|
|
eb73c55ac2 |
+13
-9
@@ -1,10 +1,9 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build-and-push
|
name: build-test
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -13,10 +12,18 @@ steps:
|
|||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
context: .
|
context: .
|
||||||
when:
|
---
|
||||||
event:
|
kind: pipeline
|
||||||
- pull_request
|
type: docker
|
||||||
|
name: build-and-push
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
|
steps:
|
||||||
- name: build-and-push
|
- name: build-and-push
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
@@ -24,11 +31,8 @@ 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:
|
||||||
from_secret: REGISTRY_PASSWORD
|
from_secret: REGISTRY_PASSWORD
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
|
|||||||
+1
-1
@@ -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 --disabled-password --gecos "" appuser && \
|
||||||
chown appuser:appuser /app
|
chown appuser:appuser /app
|
||||||
USER appuser
|
USER appuser
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user