Compare commits

..

7 commits

Author SHA1 Message Date
Collin Duncan
c5002fc18a
Adding reservation cancellation
Some checks are pending
ci/woodpecker/pr/test Pipeline is pending
ci/woodpecker/push/test Pipeline was successful
2026-03-25 11:05:34 +01:00
468f22f3e9
Adding status badge from woodpecker to README
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
2026-03-24 17:03:31 +01:00
63f77321c7
Removing unused volumes from test workflow
Some checks failed
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/deploy unknown status
2026-03-24 17:02:33 +01:00
aea4376642
Adding back push event type to test workflow
Some checks are pending
ci/woodpecker/push/deploy Pipeline is pending
ci/woodpecker/push/test Pipeline is pending
2026-03-24 17:01:51 +01:00
dd4e759fb6
Correcting CD section of readme 2026-03-24 17:01:32 +01:00
f099ebd332
Correcting name of deploy step 2026-03-24 16:58:07 +01:00
b4ef4c8ca6
Improving CICD to not deploy on pull_request events 😄
Some checks failed
ci/woodpecker/manual/test Pipeline failed
ci/woodpecker/manual/deploy unknown status
2026-03-24 16:56:21 +01:00
3 changed files with 23 additions and 4 deletions

View file

@ -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
View 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

View file

@ -1,5 +1,7 @@
# autobaan # autobaan
![alt text](https://woody.collinduncan.com/api/badges/1/status.svg)
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.