diff --git a/.github/workflows/on-main.yaml b/.github/workflows/on-main.yaml index 7dde3d9b..9a71af3d 100644 --- a/.github/workflows/on-main.yaml +++ b/.github/workflows/on-main.yaml @@ -60,7 +60,9 @@ jobs: echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7}) echo ::set-output name=repo::$(echo ${{ github.repository }}) - name: Run docker build - run: docker build -t ${{steps.vars.outputs.repo}} . + run: make docker-build + env: + NPM_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }} - name: Tag docker image run: docker tag ${{steps.vars.outputs.repo}} ghcr.io/${{steps.vars.outputs.repo}}:${{steps.vars.outputs.sha}} - name: Docker Login diff --git a/Makefile b/Makefile index bf5466a5..97322cbd 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ ## Build docker image .PHONY: docker-build docker-build: - docker build -t vulcanize/watcher-ts --build-arg NPM_AUTH_TOKEN=$(NPM_AUTH_TOKEN) . + docker build -t vulcanize/graph-watcher-ts --build-arg NPM_AUTH_TOKEN=$(NPM_AUTH_TOKEN) .