forked from glific/glific
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 1.12 KB
/
continuous-deployment.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
name: Continuous Deployment
on:
push:
branches: [ master, v1.0]
jobs:
deploy:
# only run this job if the verify job succeeds
# only run this job if the workflow is running on the feature/master branch
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: master # Checkout out master instead of the latest commit
fetch-depth: 0 # Checkout the whole branch
# setup the python
- uses: actions/setup-python@v2
with:
python-version: '3.9'
# configure the gigalixir-actions with our credentials and app name
- uses: mhanberg/[email protected]
with:
GIGALIXIR_USERNAME: ${{ secrets.GIGALIXIR_USERNAME }}
GIGALIXIR_PASSWORD: ${{ secrets.GIGALIXIR_PASSWORD }}
GIGALIXIR_APP: ${{ secrets.GIGALIXIR_APPNAME }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
MIGRATIONS: false
# Remove unattended-upgrades
- name: remove unattended-upgrades
run: sudo apt-get -y remove unattended-upgrades