Correcting docker build command

This commit is contained in:
Collin Duncan 2023-01-28 11:28:46 +01:00
parent 0e7f475928
commit 449661a3e6
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -4,7 +4,7 @@ on:
branches: branches:
- main - main
jobs: jobs:
build-server: build-image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }} GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }}
@ -13,7 +13,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Build docker image - 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 - name: Login to GHCR Docker repo
run: docker login ghcr.io -u $GHCR_USERNAME --password $GHCR_PASSWORD run: docker login ghcr.io -u $GHCR_USERNAME --password $GHCR_PASSWORD
- name: Push docker image - name: Push docker image

View file

@ -20,6 +20,7 @@
"lint": "eslint src/ --ext ts", "lint": "eslint src/ --ext ts",
"prettier": "prettier src tests -w", "prettier": "prettier src tests -w",
"local": "npx ts-node src/local/index.ts", "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:start": "docker compose -f docker/docker-compose.yml up",
"docker:stop": "docker compose -f docker/docker-compose.yml down" "docker:stop": "docker compose -f docker/docker-compose.yml down"
}, },