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

22 lines
735 B
YAML

name: test python
run-name: qwe
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.12', 'pypy3' ]
name: Python ${{ matrix.python-version }} sample
steps:
- uses: actions/checkout@v2
- name: build
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 }}
run: |
docker login git.sm8255082.ru --username sergey --password ${{ secrets.GSP }}
docker build -t git.sm8255082.ru/sergey/home-tg-bot .
docker push git.sm8255082.ru/sergey/home-tg-bot