diff --git a/.gitea/workflows/build-and-publish.yml b/.gitea/workflows/build-and-publish.yml index ae32317..5d0aeec 100644 --- a/.gitea/workflows/build-and-publish.yml +++ b/.gitea/workflows/build-and-publish.yml @@ -52,8 +52,6 @@ jobs: uses: docker/build-push-action@v6 with: context: . - build-args: | - NPM_TOKEN=${{ secrets.NPM_TOKEN }} file: ./Dockerfile push: true tags: ${{ steps.set_tags.outputs.image_tags }} diff --git a/.npmrc b/.npmrc index 06958b5..43ae5a8 100644 --- a/.npmrc +++ b/.npmrc @@ -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} \ No newline at end of file +@3t.network:registry=https://git.3t.network/api/packages/3t.network/npm/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 4b37cf0..dfb4a49 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,8 +16,7 @@ FROM base AS build COPY package*.json tsconfig.json .npmrc ./ # Install -ARG NPM_TOKEN -RUN npm install --//npm.token=${NPM_TOKEN} +RUN npm install # Copy the app COPY src ./src @@ -30,8 +29,7 @@ FROM node:lts-alpine # Install dependencies but skip dev dependencies COPY --from=build /app/package*.json /app/.npmrc ./ -ARG NPM_TOKEN -RUN npm install --only=production --//npm.token=${NPM_TOKEN} +RUN npm install --only=production # Copy the app COPY --from=build /app/dist ./dist diff --git a/scripts/build.sh b/scripts/build.sh index 20a2d9f..9cd513c 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -52,7 +52,7 @@ fi # cd to the project root directory. cd "$(dirname "$0")/.." source .env -docker build --build-arg NPM_TOKEN=$NPM_TOKEN -t butlerbot:$VERSION . +docker build -t butlerbot:$VERSION . # Tag the Docker image. for TAG in "${TAGS[@]}"; do