1
0
Fork 0
This commit is contained in:
🎷🐢 Sean-Patrick Ortencio Clayton 2022-04-08 23:11:55 -04:00
parent 1c451f880c
commit f863cb491a
Signed by: sean
SSH Key Fingerprint: SHA256:zkuPrRvkEDiQQv1Y5yScWa6I4zhj+eiv7XnP8pxIxVU
17 changed files with 94 additions and 38 deletions

0
.gitignore vendored Normal file → Executable file
View File

4
Caddyfile Normal file → Executable file
View File

@ -67,3 +67,7 @@ code.sean.wtf {
ci.sean.wtf {
reverse_proxy server_woodpecker-server:8000
}
codeberg-ci.sean.wtf {
reverse_proxy server_codeberg-woodpecker-server:8000
}

0
LICENSE Normal file → Executable file
View File

0
caddy.yaml Normal file → Executable file
View File

0
caddy/Dockerfile Normal file → Executable file
View File

0
docker.yaml Normal file → Executable file
View File

0
foundry.yaml Normal file → Executable file
View File

0
gitea.yaml Normal file → Executable file
View File

0
inventories/dev Normal file → Executable file
View File

0
inventories/prod Normal file → Executable file
View File

0
netdata.yaml Normal file → Executable file
View File

0
portainer.yaml Normal file → Executable file
View File

0
vars.yaml Normal file → Executable file
View File

81
vault.yaml Normal file → Executable file
View File

@ -1,35 +1,48 @@
$ANSIBLE_VAULT;1.1;AES256
62376165316166336232386536363337306364346464383531663365393363396662356535303034
3666613434373737666666313239653231326438653531330a636138343161343466313835386633
62616232313762363039303635336234336433313637643630643964383431326534366130346166
6635346237623935330a303962396539653030386361313038353161663336393334313562633466
39643066383833623133613135363433313866633134636363323335306235303264613039386265
39323032396164616666383132306439393830616663366339353164623433666238376631303162
38653361633730363539636364313235633537666663626436336334646161616563343366303761
66353338613437363265313266656663383432343962626638333934666434666533363030663061
62323333333064666337333465396139663366333732666266663834323336393837646338346561
33356236336263353735306236343335303864333030383632343139613831623462393137376432
31356163363333623430643430616532646662373165356531646466326136316166646133333932
64653139383463633734376335653730316134343839653364386161626235303763613931336333
31313066333635653865623030346365343533356532653436363332643734386337666134386334
31336431303031373937386234633965373631323630316166396336303839626632333936626232
39373063393430663062363631313632656637353830303736376136386335366131623363353339
36386266343334653262653663343831313538393934653133333938656238616261383364323064
63386237393632346134346436306261636234643134323065646435306631656664366263626636
34656134316165313637366361313732356364363230386664353031313137373466653862613430
31303862373830353539646536666263313239343231613930336630643962383564613366343061
35663064653464343035356665383935633534333266356632643666303732366638333463313265
62323436363337636439343535663730383263343163383666363565636463303630313761306366
66633930353631353037376164643631333264323531356436653932363835373235383962356530
61343331643831366166646630343563643861323038626339653765613638636331643434383266
36386235636465613134343762353263343933323166313161653431646633383962333665373262
36383238656465663730353333373432306230353262613938383132613630316364613935643437
33646138666631376538623265646262313036343366626335323262616265613537323465633139
37313534643538316565613661656266336161623565306138623161373561393933353165623737
30366532633933613939336237623437396136643938396138353964663030383964373438613537
62383764363030383935616363626438643264333231356531376661306131383563646461386234
30623363343063373331663934323036633239383264383536643464326539623830353833333566
32383465663865303364616562363663643038386632666263633265616363383338646432303032
66306535346666633262616462383638653233613532653665626565353039323830336136383635
62313537366436623238616635656664356430313639643131613834613833663463623866303764
3734376366336639656365666666373966326638336162376539
36383835326631333663363138363766376564663836376330353132343565326331666565366263
6366626130326438333364656533313436333734623731320a393633626162663765396534343465
61633034353832633337396331623965313531623861303966613464646530656336396334663266
3137623231613465380a663862303465383364643138303766346338353161616131633133353435
63383535313463303536323135313337346338326561306237363964333930623035393333353264
30393439316235666635633639653936613763336137363333613833343139616361363332633430
65313233383236643961303038363266393863666435353161666539663039626465383738626337
66636239663538306637323862313064306236313739323439363633653137663264623633346231
61303464666364623831623538303063646161323866396534633630316239646566356666313934
36623033613863326437626265376163366434393134626663663735653565643737386232356635
33356164303835653133373864326338393134666331373362303132653864663536666565306366
30623032653164376131643861313133366366646632353735333638333932356233303738306634
33346638313135306465646166376362616461353836363937646432356535633934613962366266
64326630306539363065616430646639323465626265366263643563306331373239373038623733
33353364633033353434346537336336336339343461326132633532323538646635656531316333
33336632643065616364316263383630306533663133313634623466396162663062396534636332
32623162353937393936366337383531363934396230303033353334646666616635616637343038
62643130626532353562643130636465643765313766356437636431663561376235346335633564
36316634613462366366353732343937613834323666313962306264343233343030663430316633
62383736363736653761323264306462316230636231353439356632353332656632643131623865
37343537393433356539316634626638626235383166613739313735646266653835393065613236
66396264376463336463346635343737313363656136376439656431353466636637333237306638
64663865336561356631636466653833663965646431343731346635636465363861353261313332
30343739646338386237636237333439306337626534663334343331323937333930626635306364
61336361313662656231396135303035643432333465376566343136363037366335326330623231
31336338303936333932623466343765646136643031613265613039336230373136346337623765
35633931366437663737323535363436643365306437613232333730306538626462636662323839
33613838393334363563393432376136366261643339653035346238303236636632633731613263
63336237383934356533666566613866373935626435623039393061666232396266646632376632
64376464313263333937633033353066303536636461316137396264366165303737356664616232
30303563326266386165643234353465346463613866303538616331376261343162323936633661
37646666393966393761313732633739323539376339323937343264336637396234626336313464
65316434656534343031336363636561393261623238656362363863616437343138373231663034
61303462306562343336373065626664623839303361363866643035333334393932666138363939
61626334383731386265323064396439636162666464626333323966663938623237656166613231
38393331386330356365396432643635306239623133653232633439353730313530366530666562
36373762393830646632613731323464396561343732323066346630353434616438386366343132
31376430316135653138356434636437353332393730626433326632643764323732633435323330
35613064663730376466386630366632373664623665386536643638326236623465303534313662
36396239396465643964643134363239356137626464313131326161643463663638633764653833
33393339623966323634613762366362666437336439316438383932353662336166623434356138
36666431376338333231353161333639363362356630393834363430343135646131326161656439
31383838396562333632316632383034383033643564366339656439303364326434383461306437
38306437633564373833616162616636616266333739656566653331386162363964366637383136
62396437323235656235303237343131656639616563353235373766616464373032316664363763
35663461333035396366363530646638343138356532363635373539666664376537343661646536
313935316164343663653434623339393863

0
watchdog.yaml Normal file → Executable file
View File

2
watchtower.yaml Normal file → Executable file
View File

@ -14,8 +14,6 @@
recreate: true
restart_policy: always
image: containrrr/watchtower
env:
DOCKER_HOST: "tcp://{{ stack_prefix_name }}docker-proxy:2375"
networks:
- name: "{{ stack_prefix_name }}{{ docker_internal_network }}"
# Watchtower needs to talk to the outside world sometimes.

45
woodpecker.yaml Normal file → Executable file
View File

@ -12,7 +12,7 @@
woodpecker_host: https://ci.sean.wtf
tasks:
- name: Start Woodpecker server
- name: Start Personal Woodpecker server
docker_container:
name: "{{ stack_prefix_name }}woodpecker-server"
recreate: true
@ -34,7 +34,7 @@
- name: "{{ stack_prefix_name }}{{ docker_external_network }}"
state: "{{ container_state }}"
- name: Start Woodpecker Agent
- name: Start Personal Woodpecker Agent
docker_container:
name: "{{ stack_prefix_name }}woodpecker-agent"
recreate: true
@ -52,3 +52,44 @@
- name: "{{ stack_prefix_name }}{{ docker_internal_network }}"
- name: "{{ stack_prefix_name }}{{ docker_external_network }}"
state: "{{ container_state }}"
- name: Start Codeberg Woodpecker server
docker_container:
name: "{{ stack_prefix_name }}codeberg-woodpecker-server"
recreate: true
restart_policy: unless-stopped
image: woodpeckerci/woodpecker-server:v0.15.0-alpine
env:
WOODPECKER_OPEN: "true"
WOODPECKER_AGENT_SECRET: "{{ secret_codeberg_woodpecker_agent_secret }}"
WOODPECKER_GITEA: "true"
WOODPECKER_GITEA_URL: "{{ gitea_url }}"
WOODPECKER_GITEA_CLIENT: "{{ secret_codeberg_woodpecker_gitea_client }}"
WOODPECKER_GITEA_SECRET: "{{ secret_codeberg_woodpecker_gitea_secret }}"
WOODPECKER_HOST: "{{ woodpecker_host }}"
mounts:
- source: "{{ stack_prefix_name }}codeberg-woodpecker_data"
target: /var/lib/woodpecker/
networks:
- name: "{{ stack_prefix_name }}{{ docker_internal_network }}"
- name: "{{ stack_prefix_name }}{{ docker_external_network }}"
state: "{{ container_state }}"
- name: Start Codeberg Woodpecker Agent
docker_container:
name: "{{ stack_prefix_name }}codeberg-woodpecker-agent"
recreate: true
restart_policy: unless-stopped
image: woodpeckerci/woodpecker-agent:v0.15.0-alpine
env:
WOODPECKER_AGENT_SECRET: "{{ secret_codeberg_woodpecker_agent_secret }}"
WOODPECKER_MAX_PROCS: "4"
WOODPECKER_SERVER: "{{ stack_prefix_name }}codeberg-woodpecker-server:9000"
mounts:
- source: /var/run/docker.sock
target: /var/run/docker.sock
type: bind
networks:
- name: "{{ stack_prefix_name }}{{ docker_internal_network }}"
- name: "{{ stack_prefix_name }}{{ docker_external_network }}"
state: "{{ container_state }}"