ci: trigger ScrobbledDeploy on semver tag releases
CI / validate-monitoring (push) Successful in 8s
CI / lint (push) Successful in 13s
CI / federation-interop (push) Successful in 1m8s
CI / test (push) Successful in 3m15s
CI / python-package (push) Skipped
CI / assets (push) Successful in 9s
CI / images (push) Successful in 34s
CI / trigger-deploy (push) Skipped
CI / notify (push) Successful in 5s
CI / validate-monitoring (push) Successful in 8s
CI / lint (push) Successful in 13s
CI / federation-interop (push) Successful in 1m8s
CI / test (push) Successful in 3m15s
CI / python-package (push) Skipped
CI / assets (push) Successful in 9s
CI / images (push) Successful in 34s
CI / trigger-deploy (push) Skipped
CI / notify (push) Successful in 5s
After images publish for a v* tag, call the Gitea API to dispatch ScrobbledDeploy's deploy workflow with the released version, so a tagged release automatically redeploys the app tier. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d90a42046e
commit
df8a114a0c
1 file changed
+18
-1
+18
-1
@@ -101,6 +101,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
tags: ${{ steps.version.outputs.image_tags }}
|
||||
version: ${{ steps.version.outputs.version }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://github.com/astral-sh/setup-uv@v6
|
||||
@@ -179,8 +180,24 @@ jobs:
|
||||
--publish-url "https://${{ vars.PKGS_HOST }}/pypi/${{ vars.PKGS_PYPI_FEED }}/legacy"
|
||||
--username api --password "${{ secrets.PKGS_API_KEY }}"
|
||||
|
||||
trigger-deploy:
|
||||
needs: [images]
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Trigger ScrobbledDeploy
|
||||
env:
|
||||
VERSION: ${{ needs.images.outputs.version }}
|
||||
TOKEN: ${{ secrets.SCROBBLEDDEPLOY_DISPATCH_TOKEN }}
|
||||
run: |
|
||||
curl -fsS -X POST \
|
||||
-H "Authorization: token ${TOKEN}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{\"ref\":\"main\",\"inputs\":{\"image_tag\":\"${VERSION}\"}}" \
|
||||
"https://git.daubney.dev/api/v1/repos/matt/ScrobbledDeploy/actions/workflows/deploy.yml/dispatches"
|
||||
|
||||
notify:
|
||||
needs: [lint, test, validate-monitoring, federation-interop, images, assets, python-package]
|
||||
needs: [lint, test, validate-monitoring, federation-interop, images, assets, python-package, trigger-deploy]
|
||||
if: always()
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
Reference in new issue
Block a user