-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (70 loc) · 1.64 KB
/
ci.yaml
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
69
70
71
72
73
74
75
76
77
78
79
on:
push:
branches:
- "**"
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rabbitmq-version:
- 3.6.6
- 3.7.10
- 3.7.11
- 3.7.12
- 3.7.13
- 3.7.14
- 3.7.15
- 3.7.16
- 3.7.17
- 3.7.18
- 3.7.19
- 3.7.20
- 3.7.21
- 3.7.22
- 3.7.23
- 3.7.24
- 3.7.25
- 3.7.26
- 3.7.27
- 3.7.28
- 3.8.0
- 3.8.1
- 3.8.2
- 3.8.3
- 3.8.4
- 3.8.5
- 3.8.6
- 3.8.7
- 3.8.8
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: docker build
run: |
make build
env:
RABBITMQ_VERSION: ${{ matrix.rabbitmq-version }}
- name: install test dependencies
run: |
python -m pip install --upgrade pip
pip install -r test-requirements.txt
- name: test
run: |
make test
env:
RABBITMQ_VERSION: ${{ matrix.rabbitmq-version }}
- name: deploy
run: |
docker login ghcr.io -u nameko-actions-bot -p ${{ secrets.ACTIONS_BOT_PAT }}
docker tag nameko/nameko-rabbitmq:${{ matrix.rabbitmq-version }} ghcr.io/nameko/nameko-rabbitmq:${{ matrix.rabbitmq-version }}
docker push ghcr.io/nameko/nameko-rabbitmq:${{ matrix.rabbitmq-version }}
if: github.ref == 'refs/heads/master'