Skip to content
name: Deploy all Ansible services
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "ansible/roles/service-*/**"
- "ansible/site.yml"
- "ansible/hosts"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy
run: |
curl --fail -L -i -H "authorization: bearer $DEPLOYER_TOKEN" -H "content-type: application/json" -X POST https://deployer.foreningenbs.no/deploy -d '
{
"service": "all-services"
}'
env:
DEPLOYER_TOKEN: ${{ secrets.DEPLOYER_TOKEN }}