|
6 | 6 | build-push: |
7 | 7 | permissions: |
8 | 8 | packages: write |
9 | | - runs-on: ubuntu-latest |
| 9 | + runs-on: self-hosted |
10 | 10 | steps: |
| 11 | + - |
| 12 | + name: gather-system-info |
| 13 | + id: system-info |
| 14 | + uses: kenchan0130/actions-system-info@v1.3.0 |
| 15 | + continue-on-error: true |
| 16 | + - |
| 17 | + name: print-system-info |
| 18 | + run: | |
| 19 | + MEMORY_GB=$((${{ steps.system-info.outputs.totalmem }}/1024/1024/1024)) |
| 20 | +
|
| 21 | + OUTPUTS=( |
| 22 | + "CPU Core: ${{ steps.system-info.outputs.cpu-core }}" |
| 23 | + "CPU Model: ${{ steps.system-info.outputs.cpu-model }}" |
| 24 | + "Hostname: ${{ steps.system-info.outputs.hostname }}" |
| 25 | + "NodeName: ${NODE_NAME}" |
| 26 | + "Kernel release: ${{ steps.system-info.outputs.kernel-release }}" |
| 27 | + "Kernel version: ${{ steps.system-info.outputs.kernel-version }}" |
| 28 | + "Name: ${{ steps.system-info.outputs.name }}" |
| 29 | + "Platform: ${{ steps.system-info.outputs.platform }}" |
| 30 | + "Release: ${{ steps.system-info.outputs.release }}" |
| 31 | + "Total memory: ${MEMORY_GB} GB" |
| 32 | + ) |
| 33 | +
|
| 34 | + for OUTPUT in "${OUTPUTS[@]}";do |
| 35 | + echo "${OUTPUT}" |
| 36 | + done |
| 37 | + continue-on-error: true |
11 | 38 | - name: Install Python 3.11 |
12 | 39 | run: | |
13 | 40 | sudo apt update |
14 | | - sudo apt install python3.11 |
| 41 | + sudo apt install -y python3.11 |
15 | 42 | - |
16 | 43 | name: Checkout |
17 | 44 | uses: actions/checkout@v4 |
18 | 45 | - |
19 | 46 | name: Set up QEMU |
20 | | - uses: docker/setup-qemu-action@v3 |
| 47 | + uses: docker/setup-qemu-action@v3 |
21 | 48 | - |
22 | 49 | name: Set up Docker Buildx |
| 50 | + id: setup-buildx |
23 | 51 | uses: docker/setup-buildx-action@v3 |
| 52 | + with: |
| 53 | + append: | |
| 54 | + - endpoint: tcp://buildkit-arm64.ci.svc.cluster.local:1234 |
| 55 | + platforms: linux/arm64 |
| 56 | + driver: remote |
| 57 | + endpoint: tcp://127.0.0.1:1234 |
24 | 58 | - name: Enable snapshotter |
25 | 59 | run: | |
26 | 60 | cat << ENDHERE >/tmp/daemon.json |
|
0 commit comments