Compare commits

...

14 Commits

Author SHA1 Message Date
3wc
d841c35297 Merge branch 'main' into changes-layout
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-02 09:06:19 -08:00
3wc
5db120498e Remove & ignore "resources" folder
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-02 09:04:48 -08:00
3wc
5d664b9085 Revert temp. disabling
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-27 11:44:27 -08:00
3wc
ae5b1adb14 Temporarily disable main deployment
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-27 11:44:07 -08:00
3wc
911a6c324c Add staging deployment
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-27 11:41:31 -08:00
3wc
5a0403c31f Switch to notifying client channel on failed builds
[ci skip]
2022-12-23 15:59:28 -08:00
3wc
8341051568 Update README, drop deploy.sh
[ci skip]
2022-12-23 15:56:52 -08:00
3wc
a7eb799f26 Ensure correct order for Drone
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-23 15:30:51 -08:00
3wc
67790870df Fix missing submodule issue
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-23 15:15:05 -08:00
3wc
8244e4c0e7 Remove dangling reference
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-23 15:05:05 -08:00
3wc
b3184b1b64 Switch to hugo deployment
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2022-12-23 15:04:03 -08:00
3wc
132b7df873 Drop Hugo version..
All checks were successful
continuous-integration/drone/push Build is passing
..in case that fixes "2022/12/23 22:34:16 unexpected EOF" here:
https://drone.autonomic.zone/autonomic-cooperative/sophie-lewis-hugo/2/1/2
2022-12-23 14:36:32 -08:00
3wc
357eb69591 Fix Drone 🤖🔧
Some checks failed
continuous-integration/drone/push Build is failing
2022-12-23 14:33:47 -08:00
3wc
54430bd0a3 Configure Drone
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2022-12-23 14:32:58 -08:00
8 changed files with 67 additions and 10 deletions

50
.drone.yml Normal file
View File

@ -0,0 +1,50 @@
---
kind: pipeline
name: deploy to docker container
steps:
- name: submodule
image: plugins/git
settings:
recursive: true
- name: docker cp deploy
image: 3wordchant/docker-cp-deploy:latest
depends_on:
- submodule
settings:
host: swarm.autonomic.zone
service: lasophielle_org_app
source: .
dest: /src
deploy_key:
from_secret: drone_ssh_swarm.autonomic.zone
when:
branch:
- main
- name: docker cp deploy staging
image: 3wordchant/docker-cp-deploy:latest
depends_on:
- submodule
settings:
host: swarm.autonomic.zone
service: lasophielle-staging_autonomic_zone_app
source: .
dest: /src
deploy_key:
from_secret: drone_ssh_swarm.autonomic.zone
when:
branch:
- staging
- name: notify on failure
image: plugins/slack
settings:
username: comradebritney
channel: clients.sophie-lewis
template: "{{repo.owner}}/{{repo.name}} build failed: {{build.link}}. Last commit by @{{build.author}}"
webhook:
from_secret: rc_builds_url
depends_on:
- docker cp deploy
- docker cp deploy staging
when:
status:
- failure

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/public
/.hugo_build.lock
/resources/

View File

@ -1,4 +1,6 @@
## Setup
# lasophielle.org
## Local set-up
This project uses `hugo` and git submodules. Below is how to set up Hugo on a
Linux machine.
@ -9,7 +11,7 @@ Linux machine.
`snap install hugo --channel=extended`
2. Run the following to make sure the git submodules are installed:
2. Run the following to make sure Bulma is installed:
```
git submodule init
@ -19,7 +21,17 @@ git submodule update
3. Now you should be able to build the project. Run `hugo server` and go to the
localhost address printed in your terminal. 🐙
## How to change about me headshot
## How to change "about me" headshot
Add the headshot image you want to use to the `static/img` directory. Then uncomment the `headshot=` option under `[param.about]`. Set this option to the filename and only the filename.
Add the headshot image you want to use to the `static/img` directory. Then
uncomment the `headshot=` option under `[param.about]`. Set this option to the
filename and only the filename.
## Deployment
Changes to the `main` branch are automatically deployed to
https://lasophielle.org using Drone, as configured in `.drone.yml`.
Click this badge to see recent builds:
[![Build Status](https://drone.autonomic.zone/api/badges/autonomic-cooperative/sophie-lewis-hugo/status.svg)](https://drone.autonomic.zone/autonomic-cooperative/sophie-lewis-hugo)

View File

@ -1,2 +0,0 @@
hugo
abra app cp customhtml_sophielewis_lasophielle public/ app:/usr/share/nginx/html/

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
{"Target":"css/style.css","MediaType":"text/css","Data":{}}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
{"Target":"css/style.css","MediaType":"text/css","Data":{}}