This commit is contained in:
21
.drone.yml
21
.drone.yml
@@ -119,14 +119,10 @@ steps:
|
|||||||
image: docker
|
image: docker
|
||||||
failure: ignore
|
failure: ignore
|
||||||
commands:
|
commands:
|
||||||
- docker login --username $REG_USER --password $REG_PASS git.mifi.dev
|
- docker login --username $REGISTRY_USERNAME --password $REGISTRY_PASSWORD git.mifi.dev
|
||||||
- 'docker build -t git.mifi.dev/mifi/mifi/auth:latest -t git.mifi.dev/mifi/mifi/auth:${DRONE_TAG:-latest} .'
|
- 'docker build -t git.mifi.dev/mifi/mifi/auth:latest -t git.mifi.dev/mifi/mifi/auth:${DRONE_TAG:-latest} .'
|
||||||
- docker push git.mifi.dev/mifi/mifi/auth:latest
|
- docker push git.mifi.dev/mifi/mifi/auth:latest
|
||||||
secrets:
|
secrets: [registry_username, registry_password]
|
||||||
- source: registry_username
|
|
||||||
target: REG_USER
|
|
||||||
- source: registry_password
|
|
||||||
target: REG_PASS
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
@@ -138,12 +134,13 @@ steps:
|
|||||||
auto_tag: true
|
auto_tag: true
|
||||||
repo: git.mifi.dev/mifi/mifi/auth
|
repo: git.mifi.dev/mifi/mifi/auth
|
||||||
registry: git.mifi.dev
|
registry: git.mifi.dev
|
||||||
# username:
|
debug: true
|
||||||
# from_secret: registry_username
|
username:
|
||||||
# password:
|
from_secret: registry_username
|
||||||
# from_secret: registry_password
|
password:
|
||||||
ssh-agent-key:
|
from_secret: registry_password
|
||||||
from_secret: gitea_token
|
# ssh-agent-key:
|
||||||
|
# from_secret: gitea_token
|
||||||
- name: Report Image Publish Status
|
- name: Report Image Publish Status
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
settings:
|
||||||
|
|||||||
@@ -5,14 +5,14 @@ COPY tsconfig.json ./
|
|||||||
COPY lib ./lib
|
COPY lib ./lib
|
||||||
RUN ls -a
|
RUN ls -a
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
RUN yarn build:production
|
RUN yarn build
|
||||||
|
|
||||||
## this is stage two , where the app actually runs
|
## this is stage two , where the app actually runs
|
||||||
FROM node:20-alpine AS containerize
|
FROM node:20-alpine AS containerize
|
||||||
|
ENV NODE_ENV ${ENV:-production}
|
||||||
WORKDIR /home/node/app
|
WORKDIR /home/node/app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN yarn install --frozen-lockfile --production
|
RUN yarn install --frozen-lockfile --production
|
||||||
COPY --from=0 /home/node/app/dist .
|
COPY --from=0 /home/node/app/dist/**/*.js .
|
||||||
EXPOSE 9001
|
EXPOSE ${PORT}
|
||||||
EXPOSE 27017
|
|
||||||
CMD ["node","server/index.js"]
|
CMD ["node","server/index.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user