CI: build-3 runner #43
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: Build and Release OpenAIA Debmodel 6TOPS | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
permissions: write-all | |
name: OpenAIA Debmodel 6TOPS runner | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Remote Docker | |
uses: docker/setup-buildx-action@v1 | |
- name: Authenticate Docker Registry | |
run: | | |
echo "Decoded Docker Auth Config:" | |
decoded_config=$(echo -n "${{ secrets.DOCKER_AUTH_CONFIG }}" | base64 --decode) | |
echo "$decoded_config" > $HOME/.docker/config.json | |
cat $HOME/.docker/config.json | |
- name: Set WORK_PATH | |
run: | | |
echo "WORK_PATH=$(dirname "${GITHUB_WORKSPACE}")" >> $GITHUB_ENV | |
echo "WORK_PATH=${{ env.WORK_PATH }}" | |
- name: Clone OpenAIA Debmodel | |
run: | | |
mkdir ${{ env.WORK_PATH }}/debmodel-openaia | |
cp -rf ${{ env.WORK_PATH }}/debmodel ${{ env.WORK_PATH }}/debmodel-openaia | |
cd ${{ env.WORK_PATH }}/debmodel-openaia | |
git clone https://github.com/openaia/debos.git | |
- name: Download artifacts | |
run: | | |
cd ${{ env.WORK_PATH }}/debmodel-openaia | |
cd debos && ./download-artifacts.sh && cd - | |
cd debmodel && ./download-artifacts.sh && cd - | |
- name: Build OpenAIA Debmodel | |
run: | | |
sudo apt install qemu-user-static | |
sudo apt install binfmt-support | |
cd ${{ env.WORK_PATH }}/debmodel-openaia | |
docker run --rm --tty \ | |
--privileged \ | |
--net host \ | |
-v ${{ env.WORK_PATH }}/debmodel-openaia:/home/build/shared \ | |
-v /dev:/dev \ | |
-e DEBIAN_FRONTEND=noninteractive \ | |
-e TERM=xterm-256color \ | |
-w /home/build/shared ghcr.io/edgeble/easy-dock/debian:bookworm-v1 \ | |
sudo debos --memory=8Gb -t buildnr:b3 debmodel/recipe.yaml | |
- name: Upload output artifacts | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: "build-3" | |
body: | | |
## OpenAIA Debomodel Build-3 | |
- add buildnr | |
- fix readme | |
files: | | |
${{ env.WORK_PATH }}/debmodel-openaia/ncm6b-openaia-deb11-b3.bmap | |
${{ env.WORK_PATH }}/debmodel-openaia/ncm6b-openaia-deb11-b3.img.gz | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |