mirror of
https://github.com/nikdoof/smsbot.git
synced 2025-12-14 02:22:15 +00:00
Use '.python-version' for builds
This commit is contained in:
6
.github/workflows/build-container.yaml
vendored
6
.github/workflows/build-container.yaml
vendored
@@ -22,11 +22,17 @@ jobs:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Set build args
|
||||
run: |
|
||||
PYTHON_VERSION=$(cat .python-version)
|
||||
echo "PYTHON_VERSION=$PYTHON_VERSION" >> $GITHUB_ENV
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
build-args: |
|
||||
PYTHON_VERSION=${{ env.PYTHON_VERSION }}
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository }}:${{ github.ref_name }}
|
||||
ghcr.io/${{ github.repository }}:latest
|
||||
|
||||
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@@ -14,8 +14,6 @@ jobs:
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.9"
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v6
|
||||
|
||||
Reference in New Issue
Block a user