fix(cicd): going back to original version, fixing ubuntu version

This commit is contained in:
Sebastian Rust
2026-02-06 09:58:55 +01:00
parent 00ecf23a22
commit 5b7a00842f

View File

@@ -10,21 +10,20 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
container:
image: python:3.12-slim
steps: steps:
- name: Install system dependencies
run: apt-get update && apt-get install -y --no-install-recommends git curl
- name: Checkout - name: Checkout
run: | uses: actions/checkout@v4
git config --global credential.helper '!f() { echo "username=token"; echo "password=${{ secrets.DEPLOY_TOKEN }}"; }; f'
git clone --depth 1 --branch "${{ github.ref_name }}" "${{ github.server_url }}/${{ github.repository }}.git" .
git checkout "${{ github.sha }}"
- name: Install Python dependencies - name: Setup Python
run: pip install ansible ansible-bundler uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install dependencies
run: |
pip install ansible ansible-bundler
- name: Verify playbook syntax - name: Verify playbook syntax
run: | run: |
@@ -52,5 +51,12 @@ jobs:
-T bootstrap.run.sha256 \ -T bootstrap.run.sha256 \
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/generic/bootstrap/latest/bootstrap.run.sha256" "${{ github.server_url }}/api/packages/${{ github.repository_owner }}/generic/bootstrap/latest/bootstrap.run.sha256"
# Note: actions/upload-artifact requires Node.js, which isn't in python:3.12-slim. # Alternative: Upload as artifact (for manual download)
# Artifacts are already uploaded to Gitea packages above. - name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: bootstrap-bundle
path: |
bootstrap.run
bootstrap.run.sha256
retention-days: 90