-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (43 loc) · 1.63 KB
/
continuous-integration-workflow.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
name: Continuous integration
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Continuous integration
runs-on: ubuntu-latest
env:
DB_HOST: ${{ secrets.DB_HOST }}
DB_PORT: ${{ secrets.DB_PORT }}
DB_DATABASE: ${{ secrets.DB_DATABASE }}
DB_USERNAME: ${{ secrets.DB_USERNAME }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
JOBATATOR_HOST: ${{ secrets.JOBATATOR_HOST }}
JOBATATOR_PORT: ${{ secrets.JOBATATOR_PORT }}
JOBATATOR_USERNAME: ${{ secrets.JOBATATOR_USERNAME }}
JOBATATOR_PASSWORD: ${{ secrets.JOBATATOR_PASSWORD }}
JOBATATOR_GROUP: ${{ secrets.JOBATATOR_GROUP }}
MASTER_API_KEY: ${{ secrets.MASTER_API_KEY }}
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
MAILCHIMP_LIST_ID: ${{ secrets.MAILCHIMP_LIST_ID }}
LA_POSTE_KEY: ${{ secrets.LA_POSTE_KEY }}
STAILEU_PUBLIC: ${{ secrets.STAILEU_PUBLIC }}
STAILEU_PRIVATE: ${{ secrets.STAILEU_PRIVATE }}
STAILEU_USER_LOGIN: ${{ secrets.STAILEU_USER_LOGIN }}
STAILEU_USER_PASSWORD: ${{ secrets.STAILEU_USER_PASSWORD }}
JWT_KEY: ${{ secrets.JWT_KEY }}
FORCE_COLOR: 1
steps:
- uses: actions/checkout@v2
- name: Build image
run: docker build -t retrobox/api:latest .
- name: Pull images
run: docker-compose pull
- name: Run docker-composer
run: docker-compose up --abort-on-container-exit
- name: Login into docker hub
run: docker login -u '${{ secrets.DOCKER_USERNAME }}' -p '${{ secrets.DOCKER_PASSWORD }}'
- name: Push image
run: docker push retrobox/api:latest