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:
|
||||
- event: push
|
||||
branch: main
|
||||
- event: manual
|
||||
branch: main
|
||||
|
||||
steps:
|
||||
- name: test-and-deploy
|
||||
- name: deploy
|
||||
image: docker.io/node:hydrogen
|
||||
volumes:
|
||||
- /etc/ssh:/etc/ssh
|
||||
commands:
|
||||
- npm ci
|
||||
- npm run test:unit
|
||||
- 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
|
||||
|
||||

|
||||
|
||||
Automatic court reservation!
|
||||
|
||||
## Setup
|
||||
|
|
@ -8,7 +10,7 @@ Automatic court reservation!
|
|||
|
||||
- Node.js (18.x)
|
||||
- npm (8.x)
|
||||
- nvm
|
||||
- nvm
|
||||
- Docker
|
||||
- redis
|
||||
|
||||
|
|
@ -33,4 +35,4 @@ npm start:dev
|
|||
|
||||
### 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