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