reconfigured workflow
This commit is contained in:
@@ -36,3 +36,9 @@ jobs:
|
|||||||
echo "🚀 Deploying: $stack_name"
|
echo "🚀 Deploying: $stack_name"
|
||||||
docker stack deploy -c "$file" "$stack_name" --with-registry-auth
|
docker stack deploy -c "$file" "$stack_name" --with-registry-auth
|
||||||
done
|
done
|
||||||
|
|
||||||
|
- name: Reload Caddy
|
||||||
|
if: steps.changes.outputs.changed != ''
|
||||||
|
run: |
|
||||||
|
echo "🔄 Restarting Caddy..."
|
||||||
|
docker service update --force caddy_caddy
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
name: Reload Caddy Proxy
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_run:
|
|
||||||
workflows: ["Deploy Stack to Swarm"]
|
|
||||||
types:
|
|
||||||
- completed
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
reload:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
||||||
steps:
|
|
||||||
- name: Restart Caddy
|
|
||||||
run: |
|
|
||||||
echo "🔄 Restarting Caddy..."
|
|
||||||
docker service update --force caddy_caddy
|
|
||||||
Reference in New Issue
Block a user