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

29 lines
1.0 KiB
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:12:55 +00:00
docker build -t home-tg-bot:latest .
2024-09-26 19:17:05 +00:00
- name: push curent version
run: |
2024-09-26 19:18:42 +00:00
docker tag home-tg-bot:latest git.sm8255082.ru/sergey/home-tg-bot:0.0.3
docker push git.sm8255082.ru/sergey/home-tg-bot:0.0.3
2024-09-26 19:18:01 +00:00
- name: push latest
run: |
docker tag home-tg-bot:latest git.sm8255082.ru/sergey/home-tg-bot:latest
docker push git.sm8255082.ru/sergey/home-tg-bot:latest