Rename template/ to infmap/, add template publish CI job
Some checks failed
Build-Publish / build (linux/amd64) (push) Successful in 4s
Build-Publish / build (linux/arm64) (push) Successful in 11s
Build-Publish / create-manifest (push) Successful in 2s
Build-Publish / publish-template (push) Failing after 5s

This commit is contained in:
j
2026-03-07 20:44:29 +13:00
parent 601079e601
commit 54ec2a2e48
16 changed files with 34 additions and 2 deletions

View File

@@ -1,7 +1,11 @@
name: Build-Publish
run-name: Build and publish infmap Docker image
run-name: Build and publish infmap
on: [push]
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
defaults:
run:
@@ -68,3 +72,31 @@ jobs:
echo "Manifest list created and pushed successfully"
fi
publish-template:
needs: [create-manifest]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dropshell
run: |
curl -fsSL https://getbin.xyz/dropshell-install | bash
~/.local/bin/dropshell create-config
~/.local/bin/dropshell install
- name: Validate template
run: |
if ~/.local/bin/dropshell validate template; then
echo "Template validation passed"
else
echo "Template validation failed"
exit 1
fi
- name: Publish template
run: |
if [ "$GITHUB_REF" = "refs/heads/main" ]; then
SOS_WRITE_TOKEN=${{ secrets.SOS_WRITE_TOKEN }} ~/.local/bin/dropshell publish --all ./
fi