-
Notifications
You must be signed in to change notification settings - Fork 4
68 lines (61 loc) · 1.79 KB
/
push-version-tag.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: "Test and deploy to production environments"
on:
push:
tags:
- "v*.*.*"
env:
DATABASE_URL: postgres://apilos:apilos@localhost:5432/apilos
DB_READONLY: postgres://apilos:apilos@localhost:5432/apilos
SECRET_KEY: secret-key
DEBUG: False
jobs:
check:
uses: ./.github/workflows/run_check.yml
test:
uses: ./.github/workflows/run_tests.yml
github_release:
name: "Create GitHub release"
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
deploy_to_siap_production:
name: "Deploy to Siap Production"
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: kolok/deploy-to-scalingo@v1
with:
ssh-private-key: ${{ secrets.SCALINGO_SSH_PRIVATE_KEY }}
app-name: apilos-siap-production
known-host: ssh.osc-fr1.scalingo.com
deploy_to_siap_recette:
name: "Deploy to Siap Recette"
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: kolok/deploy-to-scalingo@v1
with:
ssh-private-key: ${{ secrets.SCALINGO_SSH_PRIVATE_KEY }}
app-name: apilos-siap-recette
known-host: ssh.osc-fr1.scalingo.com
deploy_to_siap_ecole:
name: "Deploy to Siap École"
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: kolok/deploy-to-scalingo@v1
with:
ssh-private-key: ${{ secrets.SCALINGO_SSH_PRIVATE_KEY }}
app-name: apilos-siap-ecole
known-host: ssh.osc-fr1.scalingo.com