mirror of
https://github.com/cerc-io/watcher-ts
synced 2024-11-19 12:26:19 +00:00
Fix docker build in on-main workflow (#126)
This commit is contained in:
parent
012d2e1a47
commit
f3962257b6
4
.github/workflows/on-main.yaml
vendored
4
.github/workflows/on-main.yaml
vendored
@ -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
|
||||||
|
2
Makefile
2
Makefile
@ -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) .
|
||||||
|
Loading…
Reference in New Issue
Block a user