Update 2_create_sd.sh #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Image Builder for Archlinux on an Allwinner D1 / Sipeed Lichee RV CI | |
on: | |
push: | |
branches: [ "main", "ci"] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build and push Docker images | |
run: | |
docker build . --file Dockerfile --tag riscv-arch-image:${{ github.event.commits[0].id }} | |
- name: build img | |
run: sh build_img.sh ${{ github.event.commits[0].id }} | |
- name: Upload archive | |
uses: actions/upload-artifact@v4 | |
with: | |
name: archlinux_riscv.img.tar.gz | |
path: /home/runner/work/d1-riscv-arch-image-builder/d1-riscv-arch-image-builder/archlinux_riscv.img.tar.gz |