fix(cicd): avoid node setup
This commit is contained in:
@@ -14,10 +14,15 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: python:3.12-slim
|
image: python:3.12-slim
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Install system dependencies
|
||||||
uses: actions/checkout@v4
|
run: apt-get update && apt-get install -y --no-install-recommends git curl
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Checkout
|
||||||
|
run: |
|
||||||
|
git clone --depth 1 --branch "${{ github.ref_name }}" "${{ github.server_url }}/${{ github.repository }}.git" .
|
||||||
|
git checkout "${{ github.sha }}"
|
||||||
|
|
||||||
|
- name: Install Python dependencies
|
||||||
run: pip install ansible ansible-bundler
|
run: pip install ansible ansible-bundler
|
||||||
|
|
||||||
- name: Verify playbook syntax
|
- name: Verify playbook syntax
|
||||||
@@ -46,12 +51,5 @@ 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"
|
||||||
|
|
||||||
# Alternative: Upload as artifact (for manual download)
|
# Note: actions/upload-artifact requires Node.js, which isn't in python:3.12-slim.
|
||||||
- name: Upload artifact
|
# Artifacts are already uploaded to Gitea packages above.
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: bootstrap-bundle
|
|
||||||
path: |
|
|
||||||
bootstrap.run
|
|
||||||
bootstrap.run.sha256
|
|
||||||
retention-days: 90
|
|
||||||
|
|||||||
Reference in New Issue
Block a user