Updated syntax for docker and CI files

This commit is contained in:
2025-12-10 10:19:41 +11:00
parent b6bf405a71
commit e7b631c9c5
3 changed files with 11 additions and 9 deletions
+8 -6
View File
@@ -5,19 +5,21 @@ on:
push:
tags:
- v1.*
workflow_dispatch:
jobs:
push_to_registry:
name: Push Docker Image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check Out The Repo
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v5
- name: Setup QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Get Smart Tag
id: prepare
@@ -26,13 +28,13 @@ jobs:
docker_image: krgamestudios/chat-server
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push to Docker Hub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ steps.prepare.outputs.tag }}
+1 -1
View File
@@ -2,7 +2,7 @@
FROM node:22-bookworm-slim
WORKDIR "/app"
COPY package*.json /app
RUN npm install --production
RUN npm install --omit=dev
COPY . /app
EXPOSE 3300
USER node
+1 -1
View File
@@ -142,7 +142,7 @@ networks:
FROM node:22-bookworm-slim
WORKDIR "/app"
COPY package*.json ./
RUN npm install --production
RUN npm install --omit=dev
COPY . /app
EXPOSE ${appPort}
USER node