-
Notifications
You must be signed in to change notification settings - Fork 23
43 lines (40 loc) · 1.14 KB
/
deploy-2.0.x.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
name: Deploy 2.0.x
on:
schedule:
- cron: '30 1 * * 1-5'
workflow_dispatch:
inputs:
skip_tests:
description: 'Skip tests before delivery ?'
type: boolean
default: false
required: false
jobs:
tests:
name: Tests
if: ${{ inputs.skip_tests == false }}
uses: ./.github/workflows/tests.yml
with:
version: 2.0.x
last_published_version: 2.0.0
secrets:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
PACKAGIST_URL: ${{ secrets.PACKAGIST_URL }}
deploy-2_0_X:
needs: tests
name: Deploy 2.0.x
if: |
always() &&
(needs.tests.result == 'success' || needs.tests.result == 'skipped')
uses: ./.github/workflows/deploy-int.yml
with:
version: 2.0.x
last_published_version: 2.0.0
secrets:
AWS_DEPLOY_KEY: ${{ secrets.AWS_DEPLOY_KEY }}
AWS_HOSTNAME: ${{ secrets.AWS_HOSTNAME_STABLE }}
AWS_USER: ${{ secrets.AWS_USER }}
APP_SECRET: ${{ secrets.APP_SECRET }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
PACKAGIST_URL: ${{ secrets.PACKAGIST_URL }}