hopefully
This commit is contained in:
parent
bd42ff8054
commit
dc721b92c0
|
@ -12,8 +12,11 @@ jobs:
|
|||
packages: write
|
||||
|
||||
steps:
|
||||
- name: create .npmrc
|
||||
run: echo -e "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_TOKEN }}\n@preservetube:registry=https://npm.pkg.github.com/" > .secret_npmrc
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Create .npmrc
|
||||
run: echo -e "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}\n@preservetube:registry=https://npm.pkg.github.com/" >$HOME/.npmrc
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v2
|
||||
|
@ -29,6 +32,4 @@ jobs:
|
|||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
push: true
|
||||
secret-files: |
|
||||
"npmrc=./.secret_npmrc"
|
||||
tags: ghcr.io/${{ github.repository }}:latest
|
|
@ -4,6 +4,6 @@ RUN mkdir -p /usr/src/preservetube/metadata
|
|||
WORKDIR /usr/src/preservetube/metadata
|
||||
|
||||
COPY . /usr/src/preservetube/metadata
|
||||
RUN --mount=type=secret,id=npmrc,target=/root/.npmrc yarn
|
||||
RUN yarn
|
||||
|
||||
CMD ["node", "index.js"]
|
Loading…
Reference in New Issue