Skip to content

Commit

Permalink
add logging to GPR
Browse files Browse the repository at this point in the history
  • Loading branch information
stCarolas committed Jun 16, 2024
1 parent a8568b2 commit 4016a9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
with:
push: true
tags: ghcr.io/opendonationassistant/oda-widget-page:${{ github.RUN_NUMBER }}
buildArgs:
- gpr_token: ${{ secrets.GITHUB_TOKEN }}

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

COPY package.json package.json
COPY package-lock.json package-lock.json
Expand All @@ -9,6 +10,7 @@ COPY .env.production .env.production
COPY public/ public
COPY src/ src

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

Expand Down

0 comments on commit 4016a9a

Please sign in to comment.