File tree Expand file tree Collapse file tree 4 files changed +3
-20
lines changed Expand file tree Collapse file tree 4 files changed +3
-20
lines changed Original file line number Diff line number Diff line change 3131 context : . # required to respect .dockerignore
3232 cache-from : type=registry,ref=${{ env.BASE_IMAGE }}:latest
3333 cache-to : type=inline
34- secrets : npmrc=//registry.npmjs.org/:_authToken=${{ secrets.NPM_SECRET_TOKEN }}
3534 tags : |
3635 ${{ env.BASE_IMAGE }}:${{ github.sha }}
3736 ${{ env.BASE_IMAGE }}:latest
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ on: pull_request
44
55env :
66 BASE_IMAGE : ghcr.io/graphprotocol/graph-docs-staging
7- HEALTH_CHECK_URL : https://staging.thegraph.com/docs
8- APP_NAME : graph-docs
97 NEXT_PUBLIC_BASE_PATH : /docs
108
119jobs :
@@ -15,22 +13,10 @@ jobs:
1513 - name : Checkout the repo
1614 uses : actions/checkout@v2
1715
18- - name : Login to GitHub Container Registry
19- uses : docker/login-action@v1
20- with :
21- registry : ghcr.io
22- username : nenadjaja
23- password : ${{ secrets.GH_ACCESS_TOKEN }}
24-
25- - name : Build and push Docker image
16+ - name : Build Docker image
2617 uses : docker/build-push-action@v2
2718 with :
2819 context : . # required to respect .dockerignore
2920 cache-from : type=registry,ref=${{ env.BASE_IMAGE }}:latest
30- cache-to : type=inline
31- secrets : npmrc=//registry.npmjs.org/:_authToken=${{ secrets.NPM_SECRET_TOKEN }}
32- tags : |
33- ${{ env.BASE_IMAGE }}:${{ github.sha }}
34- ${{ env.BASE_IMAGE }}:latest
35- push : true
21+ push : false
3622 build-args : NEXT_PUBLIC_BASE_PATH=${{ env.NEXT_PUBLIC_BASE_PATH }}
Original file line number Diff line number Diff line change 3131 context : . # required to respect .dockerignore
3232 cache-from : type=registry,ref=${{ env.BASE_IMAGE }}:latest
3333 cache-to : type=inline
34- secrets : npmrc=//registry.npmjs.org/:_authToken=${{ secrets.NPM_SECRET_TOKEN }}
3534 tags : |
3635 ${{ env.BASE_IMAGE }}:${{ github.sha }}
3736 ${{ env.BASE_IMAGE }}:latest
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ COPY ./package.json /app/package.json
1111COPY ./yarn.lock /app/yarn.lock
1212
1313# install the packages
14- RUN --mount=type=secret,id=npmrc,dst=/root/.npmrc \
15- yarn install
14+ RUN yarn install
1615
1716# copy the rest
1817COPY . .
You can’t perform that action at this time.
0 commit comments