Correcting docker build command
This commit is contained in:
parent
0e7f475928
commit
449661a3e6
2 changed files with 3 additions and 2 deletions
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
|
|
@ -4,7 +4,7 @@ on:
|
|||
branches:
|
||||
- main
|
||||
jobs:
|
||||
build-server:
|
||||
build-image:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }}
|
||||
|
|
@ -13,7 +13,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build docker image
|
||||
run: docker build . -t $GHCR_IMAGE
|
||||
run: docker build . -f docker/server/Dockerfile -t $GHCR_IMAGE
|
||||
- name: Login to GHCR Docker repo
|
||||
run: docker login ghcr.io -u $GHCR_USERNAME --password $GHCR_PASSWORD
|
||||
- name: Push docker image
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
"lint": "eslint src/ --ext ts",
|
||||
"prettier": "prettier src tests -w",
|
||||
"local": "npx ts-node src/local/index.ts",
|
||||
"docker:build": "docker build . -f docker/server/Dockerfile",
|
||||
"docker:start": "docker compose -f docker/docker-compose.yml up",
|
||||
"docker:stop": "docker compose -f docker/docker-compose.yml down"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue