Preoaring for CI to personal server

This commit is contained in:
GeorgeWebberley 2026-01-26 09:54:20 +01:00
parent 858227793c
commit 7ee5bfec1b
4 changed files with 38 additions and 4 deletions

35
.woodpecker.yaml Normal file
View file

@ -0,0 +1,35 @@
when:
event: [push]
branch: main
steps:
build-and-push:
image: woodpeckerci/plugin-docker-buildx
privileged: true
settings:
platforms: linux/amd64
registry: git.georgew.dev
repo: git.georgew.dev/georgew/datasaur
tags:
- ${CI_COMMIT_SHA:0:7}
dockerfile: Dockerfile
username:
from_secret: FORGEJO_USER
password:
from_secret: FORGEJO_TOKEN
deploy:
image: docker:28-cli
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/george/datasaur:/home/george/datasaur
environment:
FORGEJO_USER:
from_secret: FORGEJO_USER
FORGEJO_TOKEN:
from_secret: FORGEJO_TOKEN
commands:
- echo $FORGEJO_TOKEN | docker login git.georgew.dev -u $FORGEJO_USER --password-stdin
- docker pull git.georgew.dev/georgew/datasaur:latest
- docker compose -p datasaur -f /home/george/datasaur/docker-compose.yaml up -d --force-recreate

View file

@ -1,5 +1,4 @@
# surveyApp
# Datasaur
A web application to aid non-experts in processing their survey data through creating data visualisations and carrying out statistical tests.
* [Documentation](./documentation.md)
* [Project Journal](./journal.md)

View file

@ -2,7 +2,7 @@ version: '3.8'
services:
web:
build: .
image: git.georgew.dev/georgew/datasaur:latest
container_name: surveyapp-web
restart: always
env_file:

View file

@ -12,7 +12,7 @@
<div class="d-flex justify-content-center mb-5 mt-4">
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Get started!
Get started
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="{{ url_for('surveys.import_file') }}" title="Import an Excel or CSV file">Import a file</a>