generated from inherentlee/11ty
Compare commits
28 Commits
95dbf3158c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 6cda4aad5f | |||
| d9300d47ce | |||
| 9a8ba2107b | |||
| 47b812fa98 | |||
| 63895e0ac4 | |||
| beafa18c20 | |||
| d0d9725807 | |||
| 71eec20b60 | |||
| 8d25ac3bb2 | |||
| 864a427107 | |||
| 285ce4d0f9 | |||
| 9e79d40d73 | |||
| 6fc188282e | |||
| ad0c7fc881 | |||
| 1e9c3c037d | |||
| 52dedcb615 | |||
| 55bf306a4a | |||
| 115a92024c | |||
| 64a386c8da | |||
| 98589550e3 | |||
| 857f282740 | |||
| 116565af6b | |||
| 29cff6f7ae | |||
| 60f41e1899 | |||
| 67cbd08d80 | |||
| 0e9e479f9b | |||
| b58de8afa8 | |||
| 1f124d71a1 |
@ -3,21 +3,23 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: build
|
||||||
image: node:current
|
image: node:current
|
||||||
environment:
|
environment:
|
||||||
REPOSITORY: mattrbld-site
|
REPOSITORY: mattrbld-site
|
||||||
|
GIT_USER: inherentlee
|
||||||
GIT_TOKEN:
|
GIT_TOKEN:
|
||||||
from_secret: GIT_TOKEN
|
from_secret: GIT_TOKEN
|
||||||
commands:
|
commands:
|
||||||
|
- git config credential.helper '!f() { echo username=$GIT_USER; echo "password=$GIT_TOKEN"; };f'
|
||||||
|
- git submodule update --remote --init --merge
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
- apt-get update && apt-get install -y rsync
|
- apt-get update && apt-get install -y rsync
|
||||||
- rsync -uavh _site/ $REPOSITORY --delete --exclude .git
|
- rsync -uavh _site/ $REPOSITORY --delete --exclude .git
|
||||||
- cd $REPOSITORY
|
- cd $REPOSITORY
|
||||||
|
- git checkout main
|
||||||
- git config --global --add safe.directory /drone/src/$REPOSITORY
|
- git config --global --add safe.directory /drone/src/$REPOSITORY
|
||||||
- git add -A
|
- git add -A
|
||||||
- git commit -m "drone build $(TZ=':America/Los_Angeles' date)"
|
- git commit -m "drone build $(TZ=':America/Los_Angeles' date)"
|
||||||
- git remote set-url origin https://heckin.technology/inherentlee/$REPOSITORY.git
|
|
||||||
- git config credential.helper '!f() { echo username=inherentlee; echo "password=$GIT_TOKEN"; };f'
|
|
||||||
- git push
|
- git push
|
||||||
|
|||||||
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +1,4 @@
|
|||||||
[submodule "mattrbld-site"]
|
[submodule "mattrbld-site"]
|
||||||
path = mattrbld-site
|
path = mattrbld-site
|
||||||
url = ssh://git@heckin.technology:2222/inherentlee/mattrbld-site.git
|
url = https://heckin.technology/inherentlee/mattrbld-site.git
|
||||||
|
update = merge
|
||||||
|
|||||||
37
README.md
37
README.md
@ -1,38 +1 @@
|
|||||||
# mattrbld test
|
# mattrbld test
|
||||||
|
|
||||||
## local drone testing
|
|
||||||
|
|
||||||
create secrets.txt:
|
|
||||||
|
|
||||||
```txt
|
|
||||||
GIT_TOKEN=PAT
|
|
||||||
```
|
|
||||||
|
|
||||||
run `drone exec` with secrets file:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
drone exec --secret-file=secrets.txt
|
|
||||||
```
|
|
||||||
|
|
||||||
## submodule bullshit
|
|
||||||
|
|
||||||
to add the submodule:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
git submodule add <remote-url>
|
|
||||||
```
|
|
||||||
|
|
||||||
to pull in remote updates:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
git submodule update --remote
|
|
||||||
```
|
|
||||||
|
|
||||||
to push incl. submodule updates:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
cd mattrbld-site
|
|
||||||
git commit -am "message"
|
|
||||||
cd ..
|
|
||||||
git push --recurse-submodules=on-demand
|
|
||||||
```
|
|
||||||
|
|||||||
@ -37,7 +37,6 @@ body {
|
|||||||
color: var(--color-text);
|
color: var(--color-text);
|
||||||
background-color: var(--color-bg);
|
background-color: var(--color-bg);
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
color: black;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#content {
|
#content {
|
||||||
|
|||||||
Submodule mattrbld-site updated: c5f520b429...591de23a22
9
src/thankyou.md
Normal file
9
src/thankyou.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
title: Thanks for contacting us!
|
||||||
|
hero:
|
||||||
|
src: /images/dscf-3866.JPG
|
||||||
|
alt: chickadee
|
||||||
|
title: null
|
||||||
|
___mb_schema: /.mattrbld/schemas/page.json
|
||||||
|
---
|
||||||
|
Thanks for filling out the contact form. We’ll be in touch in the next few days.
|
||||||
Reference in New Issue
Block a user