Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a0c22abf0 | ||
|
|
8369b2a6ba | ||
|
|
3e78dcff0f |
+7
-11
@@ -1,9 +1,10 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build-test
|
||||
name: build-and-push
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
steps:
|
||||
@@ -12,18 +13,10 @@ steps:
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
context: .
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build-and-push
|
||||
|
||||
trigger:
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
branch:
|
||||
- master
|
||||
- pull_request
|
||||
|
||||
steps:
|
||||
- name: build-and-push
|
||||
image: plugins/docker
|
||||
settings:
|
||||
@@ -36,3 +29,6 @@ steps:
|
||||
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 --gecos "" appuser && \
|
||||
RUN adduser -D -g "" appuser && \
|
||||
chown appuser:appuser /app
|
||||
USER appuser
|
||||
|
||||
|
||||
Reference in New Issue
Block a user