Preoaring for CI to personal server
This commit is contained in:
parent
858227793c
commit
7ee5bfec1b
35
.woodpecker.yaml
Normal file
35
.woodpecker.yaml
Normal 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
|
||||||
|
|
@ -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.
|
A web application to aid non-experts in processing their survey data through creating data visualisations and carrying out statistical tests.
|
||||||
|
|
||||||
* [Documentation](./documentation.md)
|
* [Documentation](./documentation.md)
|
||||||
* [Project Journal](./journal.md)
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
build: .
|
image: git.georgew.dev/georgew/datasaur:latest
|
||||||
container_name: surveyapp-web
|
container_name: surveyapp-web
|
||||||
restart: always
|
restart: always
|
||||||
env_file:
|
env_file:
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
<div class="d-flex justify-content-center mb-5 mt-4">
|
<div class="d-flex justify-content-center mb-5 mt-4">
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<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>
|
</button>
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
<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>
|
<a class="dropdown-item" href="{{ url_for('surveys.import_file') }}" title="Import an Excel or CSV file">Import a file</a>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue