add ci/cd
continuous-integration/drone/tag Build is passing Details

pull/2/head
Derit Agustin 2024-06-03 13:26:14 +00:00
parent 41330cc74a
commit 8fc61a697f
3 changed files with 26 additions and 0 deletions

23
.drone.yml Normal file
View File

@ -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

View File

@ -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