ci(action): add setup composite action
test / test (push) Successful in 35s

This commit is contained in:
2026-09-28 19:10:52 +03:00
parent beafed8faf
commit b0187506fd
3 changed files with 42 additions and 70 deletions
+6 -28
View File
@@ -6,37 +6,15 @@ on:
jobs:
build:
#needs: test
runs-on: ubuntu-latest
steps:
# repo
- name: Check out repository
uses: actions/checkout@v7
# python
- name: Set up python
id: setup-python
uses: actions/setup-python@v7
with:
python-version: "3.14"
cache: "pip"
# project-manager
- name: Install Project Manager
run: |
pip install project-manager \
--index-url https://git.shmyga.ru/api/packages/InfernalGames/pypi/simple/ \
--extra-index-url https://pypi.org/simple
# setup
- name: Setup config
run: pm setup:config -vv
# build
- name: Build docker
run: pm build:docker -vv
# login docker
- name: Login to Docker Hub
uses: docker/login-action@v4
- uses: actions/checkout@v7
- uses: ./.gitea/actions/setup
- run: pm build:docker -vv
- uses: docker/login-action@v4
with:
registry: git.shmyga.ru
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# pubish
- name: Publish docker
run: pm publish:docker -vv
- run: pm publish:docker -vv