This commit is contained in:
parent
0439f34322
commit
0539007574
28
.gitea/workflows/build-docker.yml
Normal file
28
.gitea/workflows/build-docker.yml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
name: Build and Push Docker Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: alpine:latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Build and Push with Kaniko
|
||||||
|
uses: aevea/action-kaniko@master
|
||||||
|
with:
|
||||||
|
image: git.crystalyx.net/${{ gitea.repository }}
|
||||||
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
registry: git.crystalyx.net
|
||||||
|
tag: ${{ github.ref_name }},latest
|
||||||
|
cache: true
|
||||||
|
cache_registry: git.crystalyx.net/${{ gitea.repository }}/cache
|
||||||
|
extra_args: |
|
||||||
|
--snapshot-mode=redo
|
||||||
|
--use-new-run
|
||||||
|
--compressed-caching=false
|
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
FROM node:20
|
||||||
|
|
||||||
|
# Create app directory
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Install app dependencies
|
||||||
|
COPY package.json /app
|
||||||
|
COPY package-lock.json /app
|
||||||
|
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
# Bundle app source
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
|
CMD [ "npm", "run", "start:clean" ]
|
Loading…
Reference in New Issue
Block a user