Skip to content

Commit

Permalink
try to use again gpr token
Browse files Browse the repository at this point in the history
  • Loading branch information
stCarolas committed Jun 16, 2024
1 parent 7c9ba68 commit 226d9ce
Show file tree
Hide file tree
Showing 3 changed files with 18,774 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
with:
push: true
tags: ghcr.io/opendonationassistant/oda-widget-page:${{ github.RUN_NUMBER }}
build-args: gpr_token=${{ secrets.GPR_TOKEN }}

- name: Deploying new version
uses: appleboy/[email protected]
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
FROM node:latest AS build
WORKDIR /build
ARG gpr_token

COPY package.json package.json
COPY package-lock.json package-lock.json
COPY tsconfig.json tsconfig.json
COPY .env .env
COPY .env.production .env.production
COPY .npmrc .npmrc
COPY public/ public
COPY src/ src

RUN echo "//npm.pkg.github.com/:_authToken=${gpr_token}" > ~/.npmrc
RUN npm install --legacy-peer-deps
RUN npm run build

Expand Down
Loading

0 comments on commit 226d9ce

Please sign in to comment.