File tree Expand file tree Collapse file tree 3 files changed +189
-0
lines changed Expand file tree Collapse file tree 3 files changed +189
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build Docker image
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ docker :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - name : Checkout
10
+ uses : actions/checkout@v2
11
+
12
+ - name : Set up Docker Buildx
13
+ uses : docker/setup-buildx-action@v1
14
+
15
+ - name : Login to DockerHub
16
+ uses : docker/login-action@v1
17
+ with :
18
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
19
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
20
+
21
+ - name : Build and push
22
+ id : docker_build
23
+ uses : docker/build-push-action@v2
24
+ with :
25
+ platforms : linux/amd64
26
+ push : true
27
+ tags : ${{ secrets.DOCKERHUB_USERNAME }}/pyth-client-py:latest
28
+
29
+ - name : Image digest
30
+ run : echo ${{ steps.docker_build.outputs.digest }}
Original file line number Diff line number Diff line change
1
+ # Created by https://www.toptal.com/developers/gitignore/api/python
2
+ # Edit at https://www.toptal.com/developers/gitignore?templates=python
3
+
4
+ # ## Python ###
5
+ # Byte-compiled / optimized / DLL files
6
+ __pycache__ /
7
+ * .py [cod ]
8
+ * $py.class
9
+
10
+ # C extensions
11
+ * .so
12
+
13
+ # Distribution / packaging
14
+ .Python
15
+ build /
16
+ develop-eggs /
17
+ dist /
18
+ downloads /
19
+ eggs /
20
+ .eggs /
21
+ lib /
22
+ lib64 /
23
+ parts /
24
+ sdist /
25
+ var /
26
+ wheels /
27
+ share /python-wheels /
28
+ * .egg-info /
29
+ .installed.cfg
30
+ * .egg
31
+ MANIFEST
32
+
33
+ # PyInstaller
34
+ # Usually these files are written by a python script from a template
35
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
36
+ * .manifest
37
+ * .spec
38
+
39
+ # Installer logs
40
+ pip-log.txt
41
+ pip-delete-this-directory.txt
42
+
43
+ # Unit test / coverage reports
44
+ htmlcov /
45
+ .tox /
46
+ .nox /
47
+ .coverage
48
+ .coverage. *
49
+ .cache
50
+ nosetests.xml
51
+ coverage.xml
52
+ * .cover
53
+ * .py,cover
54
+ .hypothesis /
55
+ .pytest_cache /
56
+ cover /
57
+
58
+ # Translations
59
+ * .mo
60
+ * .pot
61
+
62
+ # Django stuff:
63
+ * .log
64
+ local_settings.py
65
+ db.sqlite3
66
+ db.sqlite3-journal
67
+
68
+ # Flask stuff:
69
+ instance /
70
+ .webassets-cache
71
+
72
+ # Scrapy stuff:
73
+ .scrapy
74
+
75
+ # Sphinx documentation
76
+ docs /_build /
77
+
78
+ # PyBuilder
79
+ .pybuilder /
80
+ target /
81
+
82
+ # Jupyter Notebook
83
+ .ipynb_checkpoints
84
+
85
+ # IPython
86
+ profile_default /
87
+ ipython_config.py
88
+
89
+ # pyenv
90
+ # For a library or package, you might want to ignore these files since the code is
91
+ # intended to run in multiple environments; otherwise, check them in:
92
+ # .python-version
93
+
94
+ # pipenv
95
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
96
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
97
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
98
+ # install all needed dependencies.
99
+ # Pipfile.lock
100
+
101
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
102
+ __pypackages__ /
103
+
104
+ # Celery stuff
105
+ celerybeat-schedule
106
+ celerybeat.pid
107
+
108
+ # SageMath parsed files
109
+ * .sage.py
110
+
111
+ # Environments
112
+ .env
113
+ .venv
114
+ env /
115
+ venv /
116
+ ENV /
117
+ env.bak /
118
+ venv.bak /
119
+
120
+ # Spyder project settings
121
+ .spyderproject
122
+ .spyproject
123
+
124
+ # Rope project settings
125
+ .ropeproject
126
+
127
+ # mkdocs documentation
128
+ /site
129
+
130
+ # mypy
131
+ .mypy_cache /
132
+ .dmypy.json
133
+ dmypy.json
134
+
135
+ # Pyre type checker
136
+ .pyre /
137
+
138
+ # pytype static type analyzer
139
+ .pytype /
140
+
141
+ # Cython debug symbols
142
+ cython_debug /
143
+
144
+ # End of https://www.toptal.com/developers/gitignore/api/python
Original file line number Diff line number Diff line change
1
+ # syntax=docker/dockerfile:1.2
2
+
3
+ FROM python:3.8-alpine
4
+
5
+ WORKDIR /app
6
+
7
+ COPY . .
8
+
9
+ RUN apk add --no-cache python3-dev \
10
+ gcc \
11
+ libffi-dev \
12
+ libc-dev \
13
+ && rm -rf /var/cache/apk/
14
+
15
+ RUN python setup.py install
You can’t perform that action at this time.
0 commit comments