Compare commits
1 Commits
f6177dadb0
...
4143ddbb7d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4143ddbb7d |
@ -2,7 +2,7 @@
|
||||
# -----------------
|
||||
|
||||
when:
|
||||
event: [ push ]
|
||||
event: [ push, pull_request ]
|
||||
|
||||
steps:
|
||||
- name: publish-image
|
||||
@ -20,14 +20,12 @@ steps:
|
||||
build_args:
|
||||
NEXT_PUBLIC_API_BASE_URL:
|
||||
from_secret: NEXT_PUBLIC_API_BASE_URL
|
||||
NEXT_PUBLIC_OMV_BASE_URL:
|
||||
from_secret: NEXT_PUBLIC_OMV_BASE_URL
|
||||
tags:
|
||||
- latest
|
||||
- ${CI_COMMIT_SHA}
|
||||
when:
|
||||
event: [ push ]
|
||||
branch: [ main ]
|
||||
event: [ push, pull_request ]
|
||||
branch: [ main, dev, feature/*, feat/* ]
|
||||
|
||||
- name: deploy
|
||||
depends_on: [ publish-image ]
|
||||
@ -57,5 +55,5 @@ steps:
|
||||
$IMAGE
|
||||
"
|
||||
when:
|
||||
event: [ push ]
|
||||
branch: [ main ]
|
||||
event: [ push, pull_request ]
|
||||
branch: [ main, dev, feature/*, feat/* ]
|
||||
|
||||
@ -16,10 +16,6 @@ COPY . .
|
||||
# Build the application
|
||||
ARG NEXT_PUBLIC_API_BASE_URL
|
||||
ENV NEXT_PUBLIC_API_BASE_URL=${NEXT_PUBLIC_API_BASE_URL}
|
||||
|
||||
ARG NEXT_PUBLIC_OMV_BASE_URL
|
||||
ENV NEXT_PUBLIC_OMV_BASE_URL=${NEXT_PUBLIC_OMV_BASE_URL}
|
||||
|
||||
RUN npm run build
|
||||
|
||||
# Stage 2: Production stage
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user