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
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -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]
|
||||
|
Reference in New Issue
Block a user