.
All checks were successful
Publish to OCI / publish (push) Successful in 2m56s

This commit is contained in:
Mrrp 2025-01-25 19:40:37 -08:00
parent dc796e42a8
commit 641f1856be
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,23 @@
name: Publish to OCI
on:
push:
branches:
- gold
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set repository name to lowercase
run: echo "REPO_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Authenticate with registry
run: docker login git.smgames.club -u ${{ github.repository_owner }} -p ${{ secrets.DOCKER_TOKEN }}
- name: Build Docker container
run: docker build --no-cache --progress=plain -t git.smgames.club/${{ env.REPO_NAME }}:latest .
- name: Push Docker container
run: docker push git.smgames.club/${{ env.REPO_NAME }}:latest

9
Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM node:latest
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
EXPOSE 80
ENV NITRO_PORT 80
CMD ["node .output/server/index.mjs"]