Compare commits
7 commits
0beb5f3323
...
c5002fc18a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c5002fc18a | ||
| 468f22f3e9 | |||
| 63f77321c7 | |||
| aea4376642 | |||
| dd4e759fb6 | |||
| f099ebd332 | |||
| b4ef4c8ca6 |
3 changed files with 23 additions and 4 deletions
|
|
@ -1,13 +1,19 @@
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
|
branch: main
|
||||||
- event: manual
|
- event: manual
|
||||||
|
branch: main
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test-and-deploy
|
- name: deploy
|
||||||
image: docker.io/node:hydrogen
|
image: docker.io/node:hydrogen
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/ssh:/etc/ssh
|
- /etc/ssh:/etc/ssh
|
||||||
commands:
|
commands:
|
||||||
- npm ci
|
- npm ci
|
||||||
- npm run test:unit
|
|
||||||
- npm run deploy
|
- npm run deploy
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- test
|
||||||
|
|
||||||
|
runs_on: [success]
|
||||||
11
.woodpecker/test.yaml
Normal file
11
.woodpecker/test.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
- event: push
|
||||||
|
- event: manual
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: test
|
||||||
|
image: docker.io/node:hydrogen
|
||||||
|
commands:
|
||||||
|
- npm ci
|
||||||
|
- npm run test:unit
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
# autobaan
|
# autobaan
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
Automatic court reservation!
|
Automatic court reservation!
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
@ -8,7 +10,7 @@ Automatic court reservation!
|
||||||
|
|
||||||
- Node.js (18.x)
|
- Node.js (18.x)
|
||||||
- npm (8.x)
|
- npm (8.x)
|
||||||
- nvm
|
- nvm
|
||||||
- Docker
|
- Docker
|
||||||
- redis
|
- redis
|
||||||
|
|
||||||
|
|
@ -33,4 +35,4 @@ npm start:dev
|
||||||
|
|
||||||
### CD
|
### CD
|
||||||
|
|
||||||
So I don't forget... I am using GHA to create a container image which I pull on my server using podman. This then restarts the container on my server with the latest image. The container is backed by a systemd service to restart and start on boot.
|
Using woodpecker to deploy this via pm2.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue