Rename template/ to infmap/, add template publish CI job
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user