Fix docker build in on-main workflow (#126)

This commit is contained in:
nikugogoi 2022-06-15 12:41:08 +05:30 committed by GitHub
parent 012d2e1a47
commit f3962257b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -60,7 +60,9 @@ jobs:
echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7}) echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7})
echo ::set-output name=repo::$(echo ${{ github.repository }}) echo ::set-output name=repo::$(echo ${{ github.repository }})
- name: Run docker build - 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 - name: Tag docker image
run: docker tag ${{steps.vars.outputs.repo}} ghcr.io/${{steps.vars.outputs.repo}}:${{steps.vars.outputs.sha}} run: docker tag ${{steps.vars.outputs.repo}} ghcr.io/${{steps.vars.outputs.repo}}:${{steps.vars.outputs.sha}}
- name: Docker Login - name: Docker Login

View File

@ -1,4 +1,4 @@
## Build docker image ## Build docker image
.PHONY: docker-build .PHONY: docker-build
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) .