Skip to content

build a docker image containing a github packages module #61644

Answered by MeroFuruya
MeroFuruya asked this question in Actions
Discussion options

You must be logged in to vote

hey @yalegria, yeah i do remember figuring a way out..
but i dont remember exacly what i did to make it work.

checked the commit log real quick. only difference i see is that i cretaed and mounted the file in another way:

      - name: create .npmrc
        run: 'echo -e "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN\n@mac-brand-spaces:registry=https://npm.pkg.github.com/" > .secret_npmrc'
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      - name: Build and push Docker image
        uses: docker/build-push-action@v4
        with:
          context: .
          push: true
          secret-files: |
            "npmrc=./.secret_npmrc"
          tags: ${{ steps.meta.outpu…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@JChengLinH
Comment options

@MeroFuruya
Comment options

@jricciardi
Comment options

@JChengLinH
Comment options

Answer selected by MeroFuruya
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question inactive This discussion has been automatically marked as inactive. This was formerly labeled stale.
4 participants