Compare commits
1 commit
c5002fc18a
...
0beb5f3323
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0beb5f3323 |
3 changed files with 4 additions and 23 deletions
|
|
@ -1,19 +1,13 @@
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
branch: main
|
|
||||||
- event: manual
|
- event: manual
|
||||||
branch: main
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: deploy
|
- name: test-and-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]
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
when:
|
|
||||||
- event: pull_request
|
|
||||||
- event: push
|
|
||||||
- event: manual
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: test
|
|
||||||
image: docker.io/node:hydrogen
|
|
||||||
commands:
|
|
||||||
- npm ci
|
|
||||||
- npm run test:unit
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
# autobaan
|
# autobaan
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
Automatic court reservation!
|
Automatic court reservation!
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
@ -10,7 +8,7 @@ Automatic court reservation!
|
||||||
|
|
||||||
- Node.js (18.x)
|
- Node.js (18.x)
|
||||||
- npm (8.x)
|
- npm (8.x)
|
||||||
- nvm
|
- nvm
|
||||||
- Docker
|
- Docker
|
||||||
- redis
|
- redis
|
||||||
|
|
||||||
|
|
@ -35,4 +33,4 @@ npm start:dev
|
||||||
|
|
||||||
### CD
|
### CD
|
||||||
|
|
||||||
Using woodpecker to deploy this via pm2.
|
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.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue