This commit is contained in:
parent
dc796e42a8
commit
641f1856be
2 changed files with 32 additions and 0 deletions
23
.forgejo/workflows/publish.yml
Normal file
23
.forgejo/workflows/publish.yml
Normal 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
9
Dockerfile
Normal 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"]
|
Loading…
Add table
Reference in a new issue