generated from inherentlee/11ty
This commit is contained in:
@ -7,10 +7,11 @@ steps:
|
||||
image: node:current
|
||||
environment:
|
||||
REPOSITORY: mattrbld-site
|
||||
GIT_USER: inherentlee
|
||||
GIT_TOKEN:
|
||||
from_secret: GIT_TOKEN
|
||||
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
|
||||
- npm install
|
||||
- npm run build
|
||||
|
||||
37
README.md
37
README.md
@ -1,38 +1 @@
|
||||
# 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
|
||||
```
|
||||
|
||||
Submodule mattrbld-site updated: e82f47a6f7...591de23a22
Reference in New Issue
Block a user