-
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.61 KB
/
release.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# https://docs.github.com/en/actions
name: Release
on:
release:
types: [published]
jobs:
integrate:
uses: ./.github/workflows/integrate.yml
deploy-staging:
uses: ./.github/workflows/deploy.yml
if: ${{ github.event.release.prerelease }}
needs: integrate
with:
HOST: staging
TAG: ${{ github.ref_name }}
secrets:
DEPLOYER_INVENTORY: ${{ secrets.DEPLOYER_INVENTORY }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
NEW_RELIC_API_KEY: ${{ secrets.NEW_RELIC_API_KEY }}
deploy-production:
uses: ./.github/workflows/deploy.yml
if: ${{ !github.event.release.prerelease }}
needs: integrate
with:
HOST: production
TAG: ${{ github.ref_name }}
secrets:
DEPLOYER_INVENTORY: ${{ secrets.DEPLOYER_INVENTORY }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
NEW_RELIC_API_KEY: ${{ secrets.NEW_RELIC_API_KEY }}
docker:
uses: ./.github/workflows/docker.yml
needs: deploy-production
with:
TAG: ${{ github.ref_name }}
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}