forked from alerta/alerta
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 854 Bytes
/
Copy pathdeploy.yml
File metadata and controls
31 lines (27 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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) }}