0
0
Fork 0
mirror of https://github.com/alerta/alerta.git synced 2025-01-24 09:19:40 +00:00
alerta_alerta/.github/workflows/deploy.yml
2024-04-09 10:36:35 +02:00

31 lines
854 B
YAML

name: Deploy
on:
push:
branches: [ master, release/* ]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
BUILD_NUMBER: ${{ format('{0}-{1}-{2}', github.run_id, github.run_number, github.run_attempt) }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: >-
flyctl deploy
--build-arg BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
--build-arg BUILD_NUMBER=$BUILD_NUMBER
--build-arg RELEASE=$(cat VERSION)
--build-arg VERSION=${{ github.sha }}
--remote-only
--app alerta-api
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- uses: act10ns/slack@v2
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}