Skip to content
Snippets Groups Projects
Unverified Commit 23864ac0 authored by kogeletey's avatar kogeletey
Browse files

.build.ext: chage deploy to s3 bucket, sorry srht pages

parent ea65b5fe
No related branches found
No related tags found
No related merge requests found
image = "alpine/edge"
packages = ["npm", "zola", "rsync"]
packages = ["npm", "zola", "rsync","aws-cli","py-pip"]
sources = ["https://git.sr.ht/~kogeletey/karzok"]
secrets = ["33b937c0-5b0d-4b30-a102-732c1490e2cb"]
oauth = "pages.sr.ht/PAGES:RW"
secrets = ["33b937c0-5b0d-4b30-a102-732c1490e2cb","d7f382ed-22db-46c4-af64-d8068bd0cf36","193f0269-687e-4076-a774-f547e5cb4272"]
[environment]
github_mirror = "git@github.com:kogeletey/karzok"
website = "fmatch.org"
[[tasks]]
mirror = """
......@@ -18,15 +17,10 @@ cd karzok
npm run gen
"""
[[tasks]]
tar = """
cd karzok
tar -C public -cvz . > ../karzok.tar.gz
"""
[[tasks]]
deploy = """
acurl -f https://pages.sr.ht/publish/$website -Fcontent=@karzok.tar.gz
pip install awscli-plugin-endpoint
aws s3 cp --recursive karzok/public s3://fmatch.org
"""
......@@ -3,22 +3,22 @@ packages:
- npm
- zola
- rsync
- aws-cli
- py-pip
sources:
- https://git.sr.ht/~kogeletey/karzok
secrets:
- 33b937c0-5b0d-4b30-a102-732c1490e2cb
oauth: pages.sr.ht/PAGES:RW
- d7f382ed-22db-46c4-af64-d8068bd0cf36
- 193f0269-687e-4076-a774-f547e5cb4272
environment:
github_mirror: git@github.com:kogeletey/karzok
website: fmatch.org
tasks:
- mirror: |
ssh-keyscan github.com > "$HOME"/.ssh/known_hosts && cd karzok && git push --mirror "$github_mirror" || echo "failed mirroring"
- generate: |
cd karzok
npm run gen
- tar: |
cd karzok
tar -C public -cvz . > ../karzok.tar.gz
npm gen
- deploy: |
acurl -f https://pages.sr.ht/publish/$website -Fcontent=@karzok.tar.gz
pip install awscli-plugin-endpoint
aws s3 cp --recursive karzok/public s3://fmatch.org
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment