absolutely destroy this beautiful static html file by converting it to a slightly more dynamic flask app + docker container
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2023-03-10 11:58:21 +01:00
parent 95037c0f82
commit af0eb90e42
11 changed files with 660 additions and 212 deletions

View File

@@ -1,7 +1,27 @@
pipeline:
deploy:
image: alpine:3.13
build:
image: plugins/docker
volumes:
- /var/web/live/:/deploy
- /var/run/docker.sock:/var/run/docker.sock
settings:
registry: gitea.malloc.hackerbots.net
repo: gitea.malloc.hackerbots.net/tdfischer/hackerbots-live
daemon_off: true
auto_tag: true
username:
from_secret: GITEA_USERNAME
password:
from_secret: GITEA_PASSWORD
deploy:
image: docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- cp index.html /deploy
- docker pull gitea.malloc.hackerbots.net/tdfischer/hackerbots-live:latest
- mkdir -p ~/.ssh/
- echo "$DEPLOY_SSH_KEY" > ~/.ssh/id_rsa
- chmod a-rwx,u+r ~/.ssh/id_rsa
- chmod a-rwx,u+rx ~/.ssh/
- ssh -o StrictHostKeyChecking=no hackerbots-live-deploy@hackerbots.net sudo systemctl restart hackerbots-live
- rm ~/.ssh/id_rsa
secrets: [deploy_ssh_key]