Adaptation for github actions

This commit is contained in:
Yax 2023-11-11 14:24:55 +01:00
parent f3fa784848
commit e09d1091f3
3 changed files with 30 additions and 20 deletions

View file

@ -1,23 +1,24 @@
name: docker name: docker
on: on:
push: push:
branches: [ main ] # branches: [ main ]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.11.6]
steps: steps:
- uses: actions/checkout@v3 - name: Checkout code
- uses: actions/setup-python@v4 uses: actions/checkout@v3
with: - name: Set up rye
python-version: "3.11.0" uses: atu4403/setup-rye-multiOS@v1
- name: Install poetry - name: Sync dependencies using rye
uses: abatilo/actions-poetry@v2 run: |
with: rye pin ${{ matrix.python-version }}
poetry-version: 1.2.2 rye sync
- name: Install dependencies rye build --wheel --out dist
run: poetry install
- name: Build project
run: poetry build
- name: Build the Docker image - name: Build the Docker image
run: | run: |
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker.io echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker.io

View file

@ -1,14 +1,23 @@
name: pyinstaller name: pyinstaller
on: on:
push: push:
branches: [ main ] # branches: [ main ]
pull_request:
branches: [ main ]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.11.6]
steps: steps:
- uses: actions/checkout@v2 - name: Checkout code
uses: actions/checkout@v3
- name: Set up rye
uses: atu4403/setup-rye-multiOS@v1
- name: Sync dependencies using rye
run: |
rye pin ${{ matrix.python-version }}
rye sync
- name: Package application - name: Package application
uses: JackMcKew/pyinstaller-action-linux@python3.10 uses: JackMcKew/pyinstaller-action-linux@python3.10
with: with:

View file

@ -6,7 +6,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macos-latest] os: [ubuntu-latest]
python-version: [3.11.6] python-version: [3.11.6]
steps: steps:
- name: Checkout code - name: Checkout code