home-tg-bot/.gitea/workflows/publish.yml

21 lines
734 B
YAML
Raw Normal View History

2024-09-24 20:41:15 +00:00
name: test python
2024-09-24 20:50:24 +00:00
run-name: qwe
2024-09-24 18:44:56 +00:00
on: [push]
jobs:
2024-09-24 20:41:15 +00:00
build:
runs-on: ubuntu-latest
2024-09-26 18:56:59 +00:00
strategy:
matrix:
python-version: [ '3.12', 'pypy3' ]
name: Python ${{ matrix.python-version }} sample
2024-09-24 18:44:56 +00:00
steps:
2024-09-26 18:56:59 +00:00
- uses: actions/checkout@v2
2024-09-26 18:55:06 +00:00
- name: build
2024-09-24 21:38:40 +00:00
env:
TGBOT_CONFIG__TG__TOKEN: ${{ secrets.TGBOT_CONFIG__TG__TOKEN }}
TGBOT_CONFIG__ZBX__TOKEN: ${{ secrets.TGBOT_CONFIG__ZBX__TOKEN }}
TGBOT_CONFIG__ZBX__URL: ${{ secrets.TGBOT_CONFIG__ZBX__URL }}
2024-09-24 21:32:29 +00:00
run: |
2024-09-26 18:50:17 +00:00
docker login git.sm8255082.ru --username sergey --password ${{ secrets.GSP }}
2024-09-26 19:05:14 +00:00
docker build -t git.sm8255082.ru/sergey/home-tg-bot .
docker push git.sm8255082.ru/sergey/home-tg-bot