forked from twosixlabs/armory
-
Notifications
You must be signed in to change notification settings - Fork 0
114 lines (112 loc) · 4.27 KB
/
release.yml
File metadata and controls
114 lines (112 loc) · 4.27 KB
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
113
114
---
name: armory-release
on:
repository_dispatch:
types: build-and-release
jobs:
release-wheel:
name: Build release wheel
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.client_payload.branch }}
- uses: actions/setup-python@v1
with:
python-version: '3.6'
- name: Build and release wheel
run: |
pip install wheel
python setup.py bdist_wheel
- uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_token }}
release-tf1-docker:
name: Build and release tf1 docker image
needs: [release-wheel]
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.client_payload.branch }}
- uses: actions/setup-python@v1
with:
python-version: '3.6'
- name: Build and release docker images
run: |
rm -rf /usr/share/dotnet &
python -m pip install -r requirements.txt
version=$(python -c "import armory; print(armory.__version__)")
docker login --username ${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }}
docker pull twosixarmory/tf1:latest
bash docker/build.sh tf1
docker push twosixarmory/tf1:${version}
docker tag twosixarmory/tf1:${version} twosixarmory/tf1:latest
docker push twosixarmory/tf1:latest
release-tf2-docker:
name: Build and release tf2 docker image
needs: [release-wheel]
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.client_payload.branch }}
- uses: actions/setup-python@v1
with:
python-version: '3.6'
- name: Build and release docker images
run: |
rm -rf /usr/share/dotnet &
python -m pip install -r requirements.txt
version=$(python -c "import armory; print(armory.__version__)")
docker login --username ${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }}
docker pull twosixarmory/tf2:latest
bash docker/build.sh tf2
docker push twosixarmory/tf2:${version}
docker tag twosixarmory/tf2:${version} twosixarmory/tf2:latest
docker push twosixarmory/tf2:latest
release-pytorch-docker:
name: Build and release pytorch docker image
needs: [release-wheel]
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.client_payload.branch }}
- uses: actions/setup-python@v1
with:
python-version: '3.6'
- name: Build and release docker images
run: |
rm -rf /usr/share/dotnet &
python -m pip install -r requirements.txt
version=$(python -c "import armory; print(armory.__version__)")
docker login --username ${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }}
docker pull twosixarmory/pytorch:latest
bash docker/build.sh pytorch
docker push twosixarmory/pytorch:${version}
docker tag twosixarmory/pytorch:${version} twosixarmory/pytorch:latest
docker push twosixarmory/pytorch:latest
release-pytorch-deepspeech-docker:
name: Build and release pytorch-deepspeech docker image
needs: [release-wheel]
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.client_payload.branch }}
- uses: actions/setup-python@v1
with:
python-version: '3.6'
- name: Build and release docker images
run: |
rm -rf /usr/share/dotnet &
python -m pip install -r requirements.txt
version=$(python -c "import armory; print(armory.__version__)")
docker login --username ${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }}
docker pull twosixarmory/pytorch-deepspeech:latest
bash docker/build.sh pytorch-deepspeech
docker push twosixarmory/pytorch-deepspeech:${version}
docker tag twosixarmory/pytorch-deepspeech:${version} twosixarmory/pytorch-deepspeech:latest
docker push twosixarmory/pytorch-deepspeech:latest