generated from inherentlee/11ty
Compare commits
4 Commits
63895e0ac4
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 6cda4aad5f | |||
| d9300d47ce | |||
| 9a8ba2107b | |||
| 47b812fa98 |
@ -7,17 +7,17 @@ steps:
|
|||||||
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=inherentlee; echo "password=$GIT_TOKEN"; };f'
|
- git config credential.helper '!f() { echo username=$GIT_USER; echo "password=$GIT_TOKEN"; };f'
|
||||||
- git submodule update --remote --init --merge
|
- 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
|
||||||
- ls -al
|
|
||||||
- git checkout main
|
- 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
|
||||||
|
|||||||
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: gray;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#content {
|
#content {
|
||||||
|
|||||||
Submodule mattrbld-site updated: e82f47a6f7...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