Skip to content

Commit

Permalink
Force deply
Browse files Browse the repository at this point in the history
  • Loading branch information
sefirosweb committed Mar 13, 2024
1 parent 6722060 commit df2980d
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 27 deletions.
42 changes: 19 additions & 23 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
name: Docker Image CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
branches:
- master

jobs:

build:

publish-docker-image:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Docker Login
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3

- name: Docker Login
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker images
uses: docker/[email protected]
with:
context: .
file: docker/Dockerfile
push: true
tags: ghcr.io/sefirosweb/minecraft-legion:latest
- name: Build and push Docker images
uses: docker/[email protected]
with:
context: .
file: docker/Dockerfile
push: true
tags: ghcr.io/sefirosweb/minecraft-legion:latest
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ services:
ports:
- "${FORWARD_WEB_PORT:-80}:80" # Web port
- "4500-4550:4500-4550" # Ports used to attach viewers

3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM node:18-bullseye as base
FROM node:21-bullseye as base

FROM base AS deps
WORKDIR /app
COPY . .
RUN node -v
RUN npm run build

FROM base AS runner
Expand Down
8 changes: 7 additions & 1 deletion web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"react-router": "^6.17.0",
"react-router-dom": "^6.17.0",
"request": "^2.88.2",
"socket.io-client": "^4.7.2"
"socket.io-client": "^4.7.2",
"vec3": "^0.1.10"
},
"devDependencies": {
"@tanstack/react-query": "^5.7.0",
Expand All @@ -54,4 +55,4 @@
"vite": "^4.5.0",
"zustand": "^4.4.6"
}
}
}

0 comments on commit df2980d

Please sign in to comment.