Updated syntax for docker and CI files

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