This commit is contained in:
parent
bd9fcb53a5
commit
49eb223d9a
6
.dockerignore
Normal file
6
.dockerignore
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
node_modules/**
|
||||||
|
Dockerfile
|
||||||
|
*.env
|
||||||
|
.env
|
||||||
|
.git
|
||||||
|
build/
|
@ -4,6 +4,15 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: docker
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: gitea_packpub_username
|
||||||
|
password:
|
||||||
|
from_secret: gitea_packpub_password
|
||||||
|
registry: git.simponic.xyz
|
||||||
|
repo: git.simponic.xyz/simponic/mistymountains
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: fedora:39
|
image: fedora:39
|
||||||
commands:
|
commands:
|
||||||
|
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
FROM node:18-alpine
|
||||||
|
|
||||||
|
COPY package*.json ./
|
||||||
|
USER node
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
COPY --chown=node:node . .
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD [ "node", "build/index.js" ]
|
@ -5,6 +5,6 @@ set -e
|
|||||||
echo $SSH_KEY | base64 -d >> /tmp/key
|
echo $SSH_KEY | base64 -d >> /tmp/key
|
||||||
chmod -R 0600 /tmp/key
|
chmod -R 0600 /tmp/key
|
||||||
|
|
||||||
ssh -i /tmp/key -o StrictHostKeyChecking=no $HOST "cd /home/lizzy/mistymountains && git pull && git reset --hard origin/master && npm run build && sudo systemctl restart mmt"
|
ssh -i /tmp/key -o StrictHostKeyChecking=no $HOST "sudo systemctl restart docker-compose@mmt"
|
||||||
|
|
||||||
rm /tmp/key
|
rm /tmp/key
|
||||||
|
Loading…
Reference in New Issue
Block a user