add ci/cd
continuous-integration/drone/tag Build is passing
Details
continuous-integration/drone/tag Build is passing
Details
parent
41330cc74a
commit
8fc61a697f
|
@ -0,0 +1,23 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: build
|
||||
steps:
|
||||
- name: development
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: registry.eigen.co.id
|
||||
repo: registry.eigen.co.id/eigen/${DRONE_REPO_NAME}
|
||||
build_args:
|
||||
- env_target=env.development
|
||||
- release_version=${DRONE_TAG}
|
||||
tags: ${DRONE_TAG}
|
||||
custom_dns: 172.10.10.16
|
||||
when:
|
||||
ref:
|
||||
- refs/tags/devel.*
|
||||
trigger:
|
||||
ref:
|
||||
- refs/tags/devel.*
|
||||
event:
|
||||
exclude:
|
||||
- promote
|
|
@ -5,7 +5,10 @@ COPY . .
|
|||
RUN yarn install
|
||||
RUN yarn build
|
||||
FROM node:18.17-alpine
|
||||
ARG env_target
|
||||
WORKDIR /app
|
||||
RUN echo ${env_target}
|
||||
COPY env/$env_target /app/.env
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY --from=builder /app/dist ./dist
|
||||
COPY --from=builder /app/package.json ./package.json
|
||||
|
|
Loading…
Reference in New Issue