Compare commits
1 commit
c5002fc18a
...
0beb5f3323
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0beb5f3323 |
3 changed files with 4 additions and 23 deletions
|
|
@ -1,19 +1,13 @@
|
|||
when:
|
||||
- event: push
|
||||
branch: main
|
||||
- event: manual
|
||||
branch: main
|
||||
|
||||
steps:
|
||||
- name: deploy
|
||||
- name: test-and-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]
|
||||
|
|
@ -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
|
||||
|
||||

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