This commit is contained in:
parent
9105acf97c
commit
6ebcab155e
13
.drone.yml
13
.drone.yml
@ -1,20 +1,7 @@
|
||||
---
|
||||
kind: pipeline
|
||||
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: Build autonomic.zone docker image
|
||||
image: docker:stable
|
||||
volumes:
|
||||
- name: docker_sock
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- docker build --no-cache -t autonomic/autonomic.zone:drone .
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
|
||||
- name: Deploy Autonomic.zone with Dokku
|
||||
image: appleboy/drone-git-push:0.2.0-linux-amd64
|
||||
settings:
|
||||
|
7
Makefile
7
Makefile
@ -1,10 +1,3 @@
|
||||
DEV_DIST_DIR:=dist
|
||||
|
||||
devserver:
|
||||
@echo "Serving development site from $(DEV_DIST_DIR)"
|
||||
@jekyll serve --watch --incremental --destination $(DEV_DIST_DIR)
|
||||
.PHONY: devserver
|
||||
|
||||
dockerbuild:
|
||||
@docker build -t autonomic/autonomic.zone:testing .
|
||||
.PHONY: dockerbuild
|
||||
|
@ -2,18 +2,13 @@
|
||||
|
||||
[![Build Status](https://drone.autonomic.zone/api/badges/autonomic-cooperative/autonomic.zone/status.svg)](https://drone.autonomic.zone/autonomic-cooperative/autonomic.zone)
|
||||
|
||||
> https://site.autonomic.zone
|
||||
> https://autonomic.zone
|
||||
|
||||
A [Jekyll] based site for the Autonomic Cooperative. The site is based on the [spectral-jekyll-theme] template.
|
||||
|
||||
[jekyll]: https://jekyllrb.com/
|
||||
[spectral-jekyll-theme]: https://github.com/andrewbanchich/spectral-jekyll-theme
|
||||
|
||||
# Deploy
|
||||
|
||||
1. Push your changes to master and Dokku will try to automatically release
|
||||
1. See the [Drone dashboard to see the build](https://drone.autonomic.zone/autonomic-cooperative/autonomic.zone/)
|
||||
|
||||
# Contribute
|
||||
|
||||
Please see [CONTRIBUTING.md] for the juicy details.
|
||||
|
@ -1,5 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
echo $(pass show hosts/autonomic-dokku/vault/password)
|
@ -1,47 +0,0 @@
|
||||
---
|
||||
- hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Load variables
|
||||
include_vars:
|
||||
dir: "{{ dokku_lib_root }}/data/ansible/autonomic.zone/vars/"
|
||||
extensions:
|
||||
- yml
|
||||
|
||||
- name: Set HTTP 80 port proxy
|
||||
dokku_ports:
|
||||
app: autonomic.zone
|
||||
mappings:
|
||||
- "http:80:{{ http_port }}"
|
||||
state: present
|
||||
|
||||
- name: Setup LE certificates
|
||||
shell: dokku letsencrypt autonomic.zone
|
||||
args:
|
||||
creates: /home/dokku/autonomic.zone/letsencrypt/certs
|
||||
|
||||
- name: Setup LE certificates renew cron job
|
||||
shell: dokku letsencrypt:cron-job --add
|
||||
args:
|
||||
creates: /home/dokku/autonomic.zone/letsencrypt/cron-job
|
||||
|
||||
- name: Specify docker volume mounts
|
||||
dokku_storage:
|
||||
app: autonomic.zone
|
||||
mounts:
|
||||
- /home/dokku/autonomic.zone/letsencrypt/certs/current/key.pem:/etc/x509/https/tls.key
|
||||
- /home/dokku/autonomic.zone/letsencrypt/certs/current/cert.pem:/etc/x509/https/tls.crt
|
||||
|
||||
- name: Set HTTP 443 port
|
||||
dokku_ports:
|
||||
app: autonomic.zone
|
||||
mappings:
|
||||
- "https:443:{{ http_port }}"
|
||||
state: present
|
||||
|
||||
- name: Remove automatically configured ports
|
||||
dokku_ports:
|
||||
app: autonomic.zone
|
||||
mappings:
|
||||
- "http:4000:4000"
|
||||
state: absent
|
@ -1,34 +0,0 @@
|
||||
---
|
||||
- hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Load variables
|
||||
include_vars:
|
||||
dir: "{{ dokku_lib_root }}/data/ansible/autonomic.zone/vars/"
|
||||
extensions:
|
||||
- yml
|
||||
|
||||
- name: "Configure the {{ domain }} domain"
|
||||
dokku_domains:
|
||||
app: autonomic.zone
|
||||
domains:
|
||||
- "{{ domain }}"
|
||||
state: present
|
||||
|
||||
- name: Ensure default app configured domains go away
|
||||
dokku_domains:
|
||||
app: autonomic.zone
|
||||
domains:
|
||||
- autonomic.zone.dokku.autonomic.zone
|
||||
state: absent
|
||||
|
||||
- name: Configure the dokku app environment
|
||||
dokku_config:
|
||||
app: autonomic.zone
|
||||
restart: false
|
||||
config:
|
||||
DOKKU_LETSENCRYPT_EMAIL: "{{ autonomic_admin_mail }}"
|
||||
JEKYLL_HOST: "0.0.0.0"
|
||||
JEKYLL_PORT: "{{ http_port }}"
|
||||
JEKYLL_CONFIG: "{{ jekyll_config }}"
|
||||
JEKYLL_ENV: "{{ jekyll_env }}"
|
@ -1,6 +0,0 @@
|
||||
---
|
||||
- src: dokku_bot.ansible_dokku
|
||||
version: v2020.3.24
|
||||
|
||||
- src: https://git.coop/decentral1se/autonomic.gandi/-/archive/0.0.5/autonomic.gandi-0.0.5.tar.gz
|
||||
name: autonomic.gandi
|
@ -1,7 +0,0 @@
|
||||
---
|
||||
ansible_python_interpreter: "/usr/bin/python3"
|
||||
autonomic_admin_mail: "helo@autonomic.zone"
|
||||
domain: "autonomic.zone"
|
||||
http_port: "4000"
|
||||
jekyll_config: "_config_prod.yml"
|
||||
jekyll_env: "production"
|
@ -1,8 +0,0 @@
|
||||
---
|
||||
ansible_become_pass: !vault |
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
34396236353735666531323238656533643465303131663464613162396333313836363630666266
|
||||
6539323631656635333864316166633064633366323936610a656137616334313534333635313232
|
||||
35323561303763366563316631313638363333393763323935343563303963616334336639386462
|
||||
3837383830616637360a373539613630356564363662393836366462666430353439353637303035
|
||||
63396633303166343433313439303539313637306637663137313533316531616434
|
@ -1,8 +0,0 @@
|
||||
---
|
||||
gandi_rest_token: !vault |
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
65653461333739626564356366313338613561396163383161633561373736626138306633353261
|
||||
3230376530616361343063346533633464643165643739310a303965353336353063353564643263
|
||||
37396139643161346265616630633530353866356338386134383565363238393932666565663163
|
||||
3831393731353735350a313235376463643439363833616263653637623363386532636132366662
|
||||
65313835306637323066396232653166313262613333633061313266363338646334
|
5
app.json
5
app.json
@ -1,5 +0,0 @@
|
||||
{
|
||||
"name": "autonomic.zone",
|
||||
"description": "Autonomics website on the world wide web",
|
||||
"repository": "https://git.autonomic.zone/autonomic-cooperative/autonomic.zone"
|
||||
}
|
9
deploy.d/config.yml
Normal file
9
deploy.d/config.yml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
port: "4000"
|
||||
domain: "autonomic.zone"
|
||||
env:
|
||||
DOKKU_LETSENCRYPT_EMAIL: "helo@autonomic.zone"
|
||||
JEKYLL_CONFIG: "_config_prod.yml"
|
||||
JEKYLL_ENV: "production"
|
||||
JEKYLL_HOST: "0.0.0.0"
|
||||
JEKYLL_PORT: "4000"
|
Reference in New Issue
Block a user