-
Notifications
You must be signed in to change notification settings - Fork 0
112 lines (103 loc) · 3.67 KB
/
release.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: Docker release deploy
on: [push]
jobs:
makinage-cpython:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set env
run: echo "GIT_TAG_REF=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build and push Docker images
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: makinage/makinage
dockerfile: ./cpython/Dockerfile
tags: ${{ env.GIT_TAG_REF }}.py
makinage-cpython-36:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set env
run: echo "GIT_TAG_REF=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build and push Docker images
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: makinage/makinage
dockerfile: ./cpython/Dockerfile-3.6
tags: ${{ env.GIT_TAG_REF }}.py36
makinage-pypy:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set env
run: echo "GIT_TAG_REF=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build and push Docker images
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: makinage/makinage
dockerfile: ./pypy/Dockerfile
tags: ${{ env.GIT_TAG_REF }}, ${{ env.GIT_TAG_REF }}.pypy
makinage-serve:
needs: makinage-cpython
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set env
run: echo "GIT_TAG_REF=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build and push Docker images
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: makinage/makinage-serve
path: ./serve
tags: ${{ env.GIT_TAG_REF }}
makinage-serve-36:
needs: makinage-cpython-36
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set env
run: echo "GIT_TAG_REF=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build and push Docker images
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: makinage/makinage-serve
path: ./serve
dockerfile: ./serve/Dockerfile-3.6
tags: ${{ env.GIT_TAG_REF }}.py36
makinage-model-publisher:
needs: makinage-pypy
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set env
run: echo "GIT_TAG_REF=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build and push Docker images
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: makinage/model-publisher
path: ./model-publisher
tags: ${{ env.GIT_TAG_REF }}