ci: update drone and dockerfile
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

pos/eiger 0.0.1-eiger.testing
shancheas 2024-09-18 17:45:51 +07:00
parent cc71814648
commit 90d1548c0b
2 changed files with 19 additions and 4 deletions

View File

@ -30,6 +30,16 @@ steps:
when: when:
ref: ref:
- refs/tags/*-production.* - refs/tags/*-production.*
- name: build-eiger-testing
image: plugins/docker
settings:
registry: registry.eigen.co.id
repo: registry.eigen.co.id/eigen/${DRONE_REPO_NAME}
tags: ${DRONE_TAG}
custom_dns: 172.10.10.16
when:
ref:
- refs/tags/*-eiger.testing
- name: send-message - name: send-message
image: plugins/webhook image: plugins/webhook
settings: settings:
@ -42,6 +52,11 @@ steps:
"channel_id": "s1ekqde1c3du5p35g6budnuotc", "channel_id": "s1ekqde1c3du5p35g6budnuotc",
"message": "Build {{repo.name}} sudah selesai" "message": "Build {{repo.name}} sudah selesai"
} }
when:
ref:
- refs/tags/*-eiger.testing
- refs/tags/*-production.*
- refs/tags/*-alpha.*
trigger: trigger:
event: event:
exclude: exclude:

View File

@ -5,11 +5,11 @@ COPY . .
RUN yarn install RUN yarn install
RUN yarn build RUN yarn build
FROM node:18.17-alpine FROM node:18.17-alpine
ARG env_target # ARG env_target
WORKDIR /app WORKDIR /app
RUN echo ${env_target} # RUN echo ${env_target}
COPY env/$env_target /app/.env # COPY env/$env_target /app/.env
COPY --from=builder /app/env/$env_target .env # COPY --from=builder /app/env/$env_target .env
COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist COPY --from=builder /app/dist ./dist
COPY --from=builder /app/assets ./assets COPY --from=builder /app/assets ./assets