add docker
This commit is contained in:
parent
f1ae964a3a
commit
4e3c9ec28a
|
@ -16,20 +16,11 @@ jobs:
|
|||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
architecture: x64
|
||||
|
||||
|
||||
|
||||
- name: Print secret and variables
|
||||
run: |
|
||||
echo "TGBOT_CONFIG__TG__TOKEN: ${{ secrets.TGBOT_CONFIG__TG__TOKEN }}"
|
||||
echo "TGBOT_CONFIG__ZBX__TOKEN: ${{ secrets.TGBOT_CONFIG__ZBX__TOKEN }}"
|
||||
echo "TGBOT_CONFIG__ZBX__URL: ${{ secrets.TGBOT_CONFIG__ZBX__URL }}"
|
||||
echo "qwe: ${{ vars.QWE }}"
|
||||
- name: pip uprade
|
||||
- name: pip upgrade
|
||||
run: python -m pip install --upgrade pip
|
||||
- name: install requirements
|
||||
run: pip install -r requirements.txt
|
||||
- name: start
|
||||
- name: start bot
|
||||
env:
|
||||
TGBOT_CONFIG__TG__TOKEN: ${{ secrets.TGBOT_CONFIG__TG__TOKEN }}
|
||||
TGBOT_CONFIG__ZBX__TOKEN: ${{ secrets.TGBOT_CONFIG__ZBX__TOKEN }}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
FROM python:3.12
|
||||
ADD tg-bot-app ./tg-bot-app
|
||||
ADD requirements.txt /requirements.txt
|
||||
RUN pip install -r requirements.txt --root-user-action=ignore
|
||||
CMD ["python", "tg-bot-app/main.py"]
|
Loading…
Reference in New Issue