7 Commits

Author SHA1 Message Date
d032c01ecd Omit dev
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 31s
2024-09-25 15:14:56 +00:00
b3c050ed9e Fix CI
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 48s
2024-09-25 15:12:40 +00:00
0e9de8deb5 Fix env issue
Some checks failed
Build and Publish Docker Image / build_and_push (push) Failing after 4s
2024-09-25 15:01:18 +00:00
b382a89d38 Fix NPM repo permissions
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 41s
2024-09-18 16:51:49 +00:00
c4b75388d4 Fix NPM token
Some checks failed
Build and Publish Docker Image / build_and_push (push) Failing after 21s
2024-09-18 16:49:12 +00:00
f9f4860b14 Copy .npmrc to Docker image during build
Some checks failed
Build and Publish Docker Image / build_and_push (push) Failing after 21s
2024-09-18 16:42:32 +00:00
8d6782c90a Fix env
Some checks failed
Build and Publish Docker Image / build_and_push (push) Failing after 23s
2024-09-18 16:39:00 +00:00
4 changed files with 5 additions and 7 deletions

View File

@@ -55,8 +55,6 @@ jobs:
file: ./Dockerfile
push: true
tags: ${{ steps.set_tags.outputs.image_tags }}
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Set Portainer Webhook URL
run: |

3
.npmrc
View File

@@ -1,2 +1 @@
@3t.network:registry=https://git.3t.network/api/packages/3t.network/npm/
//git.3t.network/api/packages/3t.network/npm/:_authToken=${NPM_TOKEN}
@3t.network:registry=https://git.3t.network/api/packages/3t.network/npm/

View File

@@ -13,7 +13,7 @@ WORKDIR /app
FROM base AS build
# Create app directory and copy the app
COPY package*.json tsconfig.json ./
COPY package*.json tsconfig.json .npmrc ./
# Install
RUN npm install
@@ -28,8 +28,8 @@ RUN npm run build
FROM node:lts-alpine
# Install dependencies but skip dev dependencies
COPY --from=build /app/package*.json ./
RUN npm install --only=production
COPY --from=build /app/package*.json /app/.npmrc ./
RUN npm install --only=production --omit=dev
# Copy the app
COPY --from=build /app/dist ./dist

View File

@@ -51,6 +51,7 @@ fi
# cd to the project root directory.
cd "$(dirname "$0")/.."
source .env
docker build -t butlerbot:$VERSION .
# Tag the Docker image.